diff options
author | Andy Whitcroft <apw@shadowen.org> | 2008-07-24 00:28:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:25 -0400 |
commit | d3ddcf471ea90d7ff711dbaa371ef379ed625ec0 (patch) | |
tree | d2eee93fbc6af05508e86e8c8bca548e57902d3a /scripts/checkpatch.pl | |
parent | f3db6639fee577f6ed92c0a1fc881e748c47ec48 (diff) |
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/checkpatch.pl')
-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 { | |||
846 | if ($possible !~ /^(?:$Storage|$Type|DEFINE_\S+)$/ && | 846 | if ($possible !~ /^(?:$Storage|$Type|DEFINE_\S+)$/ && |
847 | $possible ne 'goto' && $possible ne 'return' && | 847 | $possible ne 'goto' && $possible ne 'return' && |
848 | $possible ne 'case' && $possible ne 'else' && | 848 | $possible ne 'case' && $possible ne 'else' && |
849 | $possible ne 'asm' && | 849 | $possible ne 'asm' && $possible ne '__asm__' && |
850 | $possible !~ /^(typedef|struct|enum)\b/) { | 850 | $possible !~ /^(typedef|struct|enum)\b/) { |
851 | # Check for modifiers. | 851 | # Check for modifiers. |
852 | $possible =~ s/\s*$Storage\s*//g; | 852 | $possible =~ s/\s*$Storage\s*//g; |