Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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__' &&