From: Joe Perches Date: Mon, 29 Apr 2013 23:18:15 +0000 (-0700) Subject: checkpatch: warn on space before semicolon X-Git-Tag: v3.10-rc1~178^2~220 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5646bc71b3ef9634f307f91d9c4bdf38eba4018a;p=uclinux-h8%2Flinux.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.