aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2008-07-24 00:29:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 13:47:26 -0400
commit0221f55c142b0ac8baf6f0b6c4e1ec89f0c98e96 (patch)
tree49e16ea22f6247213e7fe7bba664ceba026ea783 /scripts/checkpatch.pl
parent8ea3eb9a20f39d5afa52900a34092b4b5f6b55cb (diff)
checkpatch: possible types -- known modifiers cannot be types
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>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 6d07b6778c91..9c209165f252 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -847,7 +847,7 @@ sub possible {
847 my ($possible, $line) = @_; 847 my ($possible, $line) = @_;
848 848
849 print "CHECK<$possible> ($line)\n" if ($dbg_possible > 1); 849 print "CHECK<$possible> ($line)\n" if ($dbg_possible > 1);
850 if ($possible !~ /^(?:$Storage|$Type|DEFINE_\S+)$/ && 850 if ($possible !~ /^(?:$Modifier|$Storage|$Type|DEFINE_\S+)$/ &&
851 $possible ne 'goto' && $possible ne 'return' && 851 $possible ne 'goto' && $possible ne 'return' &&
852 $possible ne 'case' && $possible ne 'else' && 852 $possible ne 'case' && $possible ne 'else' &&
853 $possible ne 'asm' && $possible ne '__asm__' && 853 $possible ne 'asm' && $possible ne '__asm__' &&