summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index faea0ec612bf..2262e1f57fa6 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2448,6 +2448,13 @@ sub process {
2448 "space prohibited between function name and open parenthesis '('\n" . $herecurr); 2448 "space prohibited between function name and open parenthesis '('\n" . $herecurr);
2449 } 2449 }
2450 } 2450 }
2451
2452# check for whitespace before a non-naked semicolon
2453 if ($line =~ /^\+.*\S\s+;/) {
2454 CHK("SPACING",
2455 "space prohibited before semicolon\n" . $herecurr);
2456 }
2457
2451# Check operator spacing. 2458# Check operator spacing.
2452 if (!($line=~/\#\s*include/)) { 2459 if (!($line=~/\#\s*include/)) {
2453 my $ops = qr{ 2460 my $ops = qr{