diff options
author | Joe Perches <joe@perches.com> | 2013-04-29 19:18:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 21:28:20 -0400 |
commit | 5646bc71b3ef9634f307f91d9c4bdf38eba4018a (patch) | |
tree | e92492bfcd853e506aaabe2f8a16dcd72861a4d1 /scripts | |
parent | 04db4d25d9eaa58140520f976994d1a601129c00 (diff) |
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>
Diffstat (limited to 'scripts')
-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 { | |||
2522 | 2522 | ||
2523 | # check for whitespace before a non-naked semicolon | 2523 | # check for whitespace before a non-naked semicolon |
2524 | if ($line =~ /^\+.*\S\s+;/) { | 2524 | if ($line =~ /^\+.*\S\s+;/) { |
2525 | CHK("SPACING", | 2525 | WARN("SPACING", |
2526 | "space prohibited before semicolon\n" . $herecurr); | 2526 | "space prohibited before semicolon\n" . $herecurr); |
2527 | } | 2527 | } |
2528 | 2528 | ||
2529 | # Check operator spacing. | 2529 | # Check operator spacing. |