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>
This commit is contained in:
parent
04db4d25d9
commit
5646bc71b3
|
@ -2522,7 +2522,7 @@ sub process {
|
||||||
|
|
||||||
# check for whitespace before a non-naked semicolon
|
# check for whitespace before a non-naked semicolon
|
||||||
if ($line =~ /^\+.*\S\s+;/) {
|
if ($line =~ /^\+.*\S\s+;/) {
|
||||||
CHK("SPACING",
|
WARN("SPACING",
|
||||||
"space prohibited before semicolon\n" . $herecurr);
|
"space prohibited before semicolon\n" . $herecurr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue