diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index d06b6be2841e..5e63dce2e428 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -4464,6 +4464,12 @@ sub process { | |||
4464 | "Concatenated strings should use spaces between elements\n" . $herecurr); | 4464 | "Concatenated strings should use spaces between elements\n" . $herecurr); |
4465 | } | 4465 | } |
4466 | 4466 | ||
4467 | # uncoalesced string fragments | ||
4468 | if ($line =~ /"X*"\s*"/) { | ||
4469 | WARN("STRING_FRAGMENTS", | ||
4470 | "Consecutive strings are generally better as a single string\n" . $herecurr); | ||
4471 | } | ||
4472 | |||
4467 | # warn about #if 0 | 4473 | # warn about #if 0 |
4468 | if ($line =~ /^.\s*\#\s*if\s+0\b/) { | 4474 | if ($line =~ /^.\s*\#\s*if\s+0\b/) { |
4469 | CHK("REDUNDANT_CODE", | 4475 | CHK("REDUNDANT_CODE", |