diff options
-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 9f14bf928cc7..da74e65064d1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -2361,6 +2361,12 @@ sub process { | |||
2361 | "quoted string split across lines\n" . $hereprev); | 2361 | "quoted string split across lines\n" . $hereprev); |
2362 | } | 2362 | } |
2363 | 2363 | ||
2364 | # check for missing a space in a string concatination | ||
2365 | if ($prevrawline =~ /[^\\]\w"$/ && $rawline =~ /^\+[\t ]+"\w/) { | ||
2366 | WARN('MISSING_SPACE', | ||
2367 | "break quoted strings at a space character\n" . $hereprev); | ||
2368 | } | ||
2369 | |||
2364 | # check for spaces before a quoted newline | 2370 | # check for spaces before a quoted newline |
2365 | if ($rawline =~ /^.*\".*\s\\n/) { | 2371 | if ($rawline =~ /^.*\".*\s\\n/) { |
2366 | if (WARN("QUOTED_WHITESPACE_BEFORE_NEWLINE", | 2372 | if (WARN("QUOTED_WHITESPACE_BEFORE_NEWLINE", |