Skip to content

Commit

Permalink
checkpatch: warn on space before semicolon
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Apr 30, 2013
1 parent 04db4d2 commit 5646bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5646bc7

Please sign in to comment.