From: Andy Whitcroft Date: Thu, 16 Oct 2008 05:02:30 +0000 (-0700) Subject: checkpatch: labels are not possible types X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a6a84062821738426ed4f58f4d584ecb7feb3dee;p=openwrt%2Fstaging%2Fblogic.git checkpatch: labels are not possible types A label is not a candidate for a possible type. Exclude them. Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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 { possible($type, "A:" . $s); # definitions in global scope can only start with types - } elsif ($s =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b/s) { + } elsif ($s =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b\s*(?!:)/s) { possible($1, "B:" . $s); }