summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-08-06 16:10:44 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 18:01:27 -0700
commitfee0aa83d43ee65648778d48d47975c323fa0490 (patch)
treeed5064e69fe13a65bcc5dcd6f2f4a6b906f188a2
parent365dd4eaafa22d2c79913d5f057d636e8842c470 (diff)
downloadop-kernel-dev-fee0aa83d43ee65648778d48d47975c323fa0490.zip
op-kernel-dev-fee0aa83d43ee65648778d48d47975c323fa0490.tar.gz
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-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index fad2116..146e9f9 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2353,7 +2353,7 @@ sub process {
$sline =~ /^\+\s+\(?\s*(?:$Compare|$Assignment|$Operators)/) &&
# indentation of previous and current line are the same
(($prevline =~ /\+(\s+)\S/) && $sline =~ /^\+$1\S/)) {
- WARN("SPACING",
+ WARN("LINE_SPACING",
"Missing a blank line after declarations\n" . $hereprev);
}
OpenPOWER on IntegriCloud