From a2baaef386961a90d8ee7477840dfcbe51c2c1c4 Mon Sep 17 00:00:00 2001 From: Andy Whitcroft Date: Wed, 15 Oct 2008 22:02:30 -0700 Subject: [PATCH] --- yaml --- r: 114774 b: refs/heads/master c: a6a84062821738426ed4f58f4d584ecb7feb3dee h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/checkpatch.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 87520ab63d69..acffb573d4a4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0776e594606e32a045e0a99bb919b2280b945495 +refs/heads/master: a6a84062821738426ed4f58f4d584ecb7feb3dee diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index 6b21188d2cf7..17e1d94fa1fa 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/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); }