diff options
author | Andy Whitcroft <apw@shadowen.org> | 2008-07-24 06:28:58 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 19:47:25 +0200 |
commit | d3ddcf471ea90d7ff711dbaa371ef379ed625ec0 (patch) | |
tree | d2eee93fbc6af05508e86e8c8bca548e57902d3a /scripts | |
parent | checkpatch: add a checkpatch warning for new uses of __initcall(). (diff) | |
download | linux-d3ddcf471ea90d7ff711dbaa371ef379ed625ec0.tar.xz linux-d3ddcf471ea90d7ff711dbaa371ef379ed625ec0.zip |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index cf70f123f574..fd597a4b5dad 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; |