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>
This commit is contained in:
parent
8ea3eb9a20
commit
0221f55c14
|
@ -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__' &&
|
||||||
|
|
Loading…
Reference in New Issue