diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 6fa167758f82..3e9fee60642c 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -3009,10 +3009,12 @@ sub process { | |||
3009 | } | 3009 | } |
3010 | } | 3010 | } |
3011 | 3011 | ||
3012 | # check for line continuations outside of #defines | 3012 | # check for line continuations outside of #defines, preprocessor #, and asm |
3013 | 3013 | ||
3014 | } else { | 3014 | } else { |
3015 | if ($prevline !~ /^..*\\$/ && | 3015 | if ($prevline !~ /^..*\\$/ && |
3016 | $line !~ /^\+\s*\#.*\\$/ && # preprocessor | ||
3017 | $line !~ /^\+.*\b(__asm__|asm)\b.*\\$/ && # asm | ||
3016 | $line =~ /^\+.*\\$/) { | 3018 | $line =~ /^\+.*\\$/) { |
3017 | WARN("LINE_CONTINUATIONS", | 3019 | WARN("LINE_CONTINUATIONS", |
3018 | "Avoid unnecessary line continuations\n" . $herecurr); | 3020 | "Avoid unnecessary line continuations\n" . $herecurr); |