diff options
author | Joe Perches <joe@perches.com> | 2014-08-06 19:10:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 21:01:27 -0400 |
commit | fee0aa83d43ee65648778d48d47975c323fa0490 (patch) | |
tree | ed5064e69fe13a65bcc5dcd6f2f4a6b906f188a2 | |
parent | 365dd4eaafa22d2c79913d5f057d636e8842c470 (diff) |
checkpatch: change blank line after declaration type to "LINE_SPACING"
Make it consistent with the other missing or multiple blank line tests.
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>
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index fad2116f51a4..146e9f907280 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -2353,7 +2353,7 @@ sub process { | |||
2353 | $sline =~ /^\+\s+\(?\s*(?:$Compare|$Assignment|$Operators)/) && | 2353 | $sline =~ /^\+\s+\(?\s*(?:$Compare|$Assignment|$Operators)/) && |
2354 | # indentation of previous and current line are the same | 2354 | # indentation of previous and current line are the same |
2355 | (($prevline =~ /\+(\s+)\S/) && $sline =~ /^\+$1\S/)) { | 2355 | (($prevline =~ /\+(\s+)\S/) && $sline =~ /^\+$1\S/)) { |
2356 | WARN("SPACING", | 2356 | WARN("LINE_SPACING", |
2357 | "Missing a blank line after declarations\n" . $hereprev); | 2357 | "Missing a blank line after declarations\n" . $hereprev); |
2358 | } | 2358 | } |
2359 | 2359 | ||