]> err.no Git - linux-2.6/commitdiff
checkpatch: possible types -- known modifiers cannot be types
authorAndy Whitcroft <apw@shadowen.org>
Thu, 24 Jul 2008 04:29:08 +0000 (21:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:26 +0000 (10:47 -0700)
Ensure we do not inadvertantly load known modifiers up as possible types.

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>
scripts/checkpatch.pl

index 6d07b6778c9102e0c01503d19af2299f5fbe6d1b..9c209165f25230991ed58b022709e8f24ac55482 100755 (executable)
@@ -847,7 +847,7 @@ sub possible {
        my ($possible, $line) = @_;
 
        print "CHECK<$possible> ($line)\n" if ($dbg_possible > 1);
-       if ($possible !~ /^(?:$Storage|$Type|DEFINE_\S+)$/ &&
+       if ($possible !~ /^(?:$Modifier|$Storage|$Type|DEFINE_\S+)$/ &&
            $possible ne 'goto' && $possible ne 'return' &&
            $possible ne 'case' && $possible ne 'else' &&
            $possible ne 'asm' && $possible ne '__asm__' &&