History

checkpatch: change blank line after declaration type to "LINE_SPACING"

Make it consistent with the other missing or multiple blank line tests.

Joe Perches committed 12 years ago

Commit fee0aa81 parent 365dd4e1 file · +1 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -2353,7 +2353,7 @@ sub process { · 2352 unmodified lines
23532353 $sline =~ /^\+\s+\(?\s*(?:$Compare|$Assignment|$Operators)/) &&
23542354 # indentation of previous and current line are the same
23552355 (($prevline =~ /\+(\s+)\S/) && $sline =~ /^\+$1\S/)) {
2356− WARN("SPACING",
2356+ WARN("LINE_SPACING",
23572357 "Missing a blank line after declarations\n" . $hereprev);
23582358 }
23592359