Skip to content

Commit 5646bc7

Browse files
JoePerchestorvalds
authored andcommitted
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>
1 parent 04db4d2 commit 5646bc7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/checkpatch.pl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,8 +2522,8 @@ sub process {
25222522

25232523
# check for whitespace before a non-naked semicolon
25242524
if ($line =~ /^\+.*\S\s+;/) {
2525-
CHK("SPACING",
2526-
"space prohibited before semicolon\n" . $herecurr);
2525+
WARN("SPACING",
2526+
"space prohibited before semicolon\n" . $herecurr);
25272527
}
25282528

25292529
# Check operator spacing.

0 commit comments

Comments
 (0)