]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - scripts/checkpatch.pl
tg3: Update version to 3.109
[net-next-2.6.git] / scripts / checkpatch.pl
index cf4e44cf3c27d5cc4758ab082ad26bd2aef0f903..a4d74344d805610a67e0e7e0bbf1674875f555a7 100755 (executable)
@@ -1394,6 +1394,11 @@ sub process {
                        WARN("line over 80 characters\n" . $herecurr);
                }
 
+# check for spaces before a quoted newline
+               if ($rawline =~ /^.*\".*\s\\n/) {
+                       WARN("unnecessary whitespace before a quoted newline\n" . $herecurr);
+               }
+
 # check for adding lines without a newline.
                if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file/) {
                        WARN("adding a line without newline at end of file\n" . $herecurr);