Commit 5646bc71b3ef9634f307f91d9c4bdf38eba4018a

Authored by Joe Perches
Committed by Linus Torvalds
1 parent 04db4d25d9

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

scripts/checkpatch.pl
... ... @@ -2522,8 +2522,8 @@
2522 2522  
2523 2523 # check for whitespace before a non-naked semicolon
2524 2524 if ($line =~ /^\+.*\S\s+;/) {
2525   - CHK("SPACING",
2526   - "space prohibited before semicolon\n" . $herecurr);
  2525 + WARN("SPACING",
  2526 + "space prohibited before semicolon\n" . $herecurr);
2527 2527 }
2528 2528  
2529 2529 # Check operator spacing.