Make it consistent with the other missing or multiple blank line tests.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -2353,7 +2353,7 @@ sub process { · 2352 unmodified lines | |||
| 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 | ||