diff options
author | Andy Whitcroft <apw@shadowen.org> | 2008-10-16 01:02:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:21:37 -0400 |
commit | a6a84062821738426ed4f58f4d584ecb7feb3dee (patch) | |
tree | 7e3da286264b20d4f962fcd72c9019b13253a1d5 /scripts | |
parent | 0776e594606e32a045e0a99bb919b2280b945495 (diff) |
checkpatch: labels are not possible types
A label is not a candidate for a possible type. Exclude them.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
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 | ||