From: Joe Perches Date: Mon, 29 Apr 2013 23:18:15 +0000 (-0700) Subject: checkpatch: warn on space before semicolon X-Git-Tag: firefly_0821_release~3680^2~660^2~220 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5646bc71b3ef9634f307f91d9c4bdf38eba4018a;p=firefly-linux-kernel-4.4.55.git checkpatch: warn on space before semicolon Make space before semicolon a warning instead of a --strict CHK test. Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 9cdd147c1335..b20ca55cddd3 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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.