checkpatch: warn on space before semicolon
authorJoe Perches <joe@perches.com>
Mon, 29 Apr 2013 23:18:15 +0000 (16:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Apr 2013 01:28:20 +0000 (18:28 -0700)
Make space before semicolon a warning instead of a --strict CHK test.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl

index 9cdd147c1335c9b54c4a79ffe22194b0bc9bcac3..b20ca55cddd3aaa07488323e66161403a2f55423 100755 (executable)
@@ -2522,8 +2522,8 @@ sub process {
 
 # check for whitespace before a non-naked semicolon
                if ($line =~ /^\+.*\S\s+;/) {
-                       CHK("SPACING",
-                           "space prohibited before semicolon\n" . $herecurr);
+                       WARN("SPACING",
+                            "space prohibited before semicolon\n" . $herecurr);
                }
 
 # Check operator spacing.