checkpatch: warn on space before semicolon
Joe Perches [Mon, 29 Apr 2013 23:18:15 +0000 (16:18 -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 9cdd147..b20ca55 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.