mirror of https://gitee.com/openkylin/linux.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 <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
f3db6639fe
commit
d3ddcf471e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue