summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2008-07-24 06:28:58 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 19:47:25 +0200
commitd3ddcf471ea90d7ff711dbaa371ef379ed625ec0 (patch)
treed2eee93fbc6af05508e86e8c8bca548e57902d3a /scripts/checkpatch.pl
parentcheckpatch: add a checkpatch warning for new uses of __initcall(). (diff)
downloadlinux-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 '')
-rwxr-xr-xscripts/checkpatch.pl2
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;