aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 6b21188d2cf7..17e1d94fa1fa 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1324,7 +1324,7 @@ sub process {
1324 possible($type, "A:" . $s); 1324 possible($type, "A:" . $s);
1325 1325
1326 # definitions in global scope can only start with types 1326 # definitions in global scope can only start with types
1327 } elsif ($s =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b/s) { 1327 } elsif ($s =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b\s*(?!:)/s) {
1328 possible($1, "B:" . $s); 1328 possible($1, "B:" . $s);
1329 } 1329 }
1330 1330