diff options
author | Joe Perches <joe@perches.com> | 2013-04-29 16:18:15 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 18:28:20 -0700 |
commit | 5646bc71b3ef9634f307f91d9c4bdf38eba4018a (patch) | |
tree | e92492bfcd853e506aaabe2f8a16dcd72861a4d1 | |
parent | 04db4d25d9eaa58140520f976994d1a601129c00 (diff) | |
download | linux-5646bc71b3ef9634f307f91d9c4bdf38eba4018a.tar.bz2 |
checkpatch: warn on space before semicolon
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>
-rwxr-xr-x | scripts/checkpatch.pl | 4 |
1 files changed, 2 insertions, 2 deletions
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. |