From: Andy Whitcroft Date: Thu, 24 Jul 2008 04:28:58 +0000 (-0700) Subject: checkpatch: possible types: __asm__ is never a type X-Git-Tag: v3.12-rc1~19707 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3ddcf471ea90d7ff711dbaa371ef379ed625ec0;p=kernel%2Fkernel-generic.git checkpatch: possible types: __asm__ is never a type We are false matching __asm__ as a type, and then tripping the external function checks. Squash. Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index cf70f12..fd597a4 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -846,7 +846,7 @@ sub possible { if ($possible !~ /^(?:$Storage|$Type|DEFINE_\S+)$/ && $possible ne 'goto' && $possible ne 'return' && $possible ne 'case' && $possible ne 'else' && - $possible ne 'asm' && + $possible ne 'asm' && $possible ne '__asm__' && $possible !~ /^(typedef|struct|enum)\b/) { # Check for modifiers. $possible =~ s/\s*$Storage\s*//g;