Commit 0221f55c authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Linus Torvalds

checkpatch: possible types -- known modifiers cannot be types

Ensure we do not inadvertantly load known modifiers up as possible types.
Signed-off-by: default avatarAndy Whitcroft <apw@shadowen.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8ea3eb9a
...@@ -847,7 +847,7 @@ sub possible { ...@@ -847,7 +847,7 @@ sub possible {
my ($possible, $line) = @_; my ($possible, $line) = @_;
print "CHECK<$possible> ($line)\n" if ($dbg_possible > 1); 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 'goto' && $possible ne 'return' &&
$possible ne 'case' && $possible ne 'else' && $possible ne 'case' && $possible ne 'else' &&
$possible ne 'asm' && $possible ne '__asm__' && $possible ne 'asm' && $possible ne '__asm__' &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment