diff --git a/[refs] b/[refs] index ea7a1a2c2b45..5070de76fbc3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5ca43f6c3b365024d889bc77064bb331f5a72a45 +refs/heads/master: 428e2fdc4ecee2312829e97549f99c12312f4faf diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index d8670810db65..5c9672951077 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/scripts/checkpatch.pl @@ -2748,6 +2748,11 @@ sub process { WARN("sizeof(& should be avoided\n" . $herecurr); } +# check for line continuations in quoted strings with odd counts of " + if ($rawline =~ /\\$/ && $rawline =~ tr/"/"/ % 2) { + WARN("Avoid line continuations in quoted strings\n" . $herecurr); + } + # check for new externs in .c files. if ($realfile =~ /\.c$/ && defined $stat && $stat =~ /^.\s*(?:extern\s+)?$Type\s+($Ident)(\s*)\(/s)