]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
checkpatch: change blank line after declaration type to "LINE_SPACING"
authorJoe Perches <joe@perches.com>
Wed, 6 Aug 2014 23:10:44 +0000 (16:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:27 +0000 (18:01 -0700)
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>
scripts/checkpatch.pl

index fad2116f51a445b005617ba568d7d45e52dc21f0..146e9f9072806ec172795a5feea482c3578e8736 100755 (executable)
@@ -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);
                }