summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2008-07-24 06:29:08 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 19:47:26 +0200
commit0221f55c142b0ac8baf6f0b6c4e1ec89f0c98e96 (patch)
tree49e16ea22f6247213e7fe7bba664ceba026ea783 /scripts
parentcheckpatch: handle return types of pointers to functions (diff)
downloadlinux-0221f55c142b0ac8baf6f0b6c4e1ec89f0c98e96.tar.xz
linux-0221f55c142b0ac8baf6f0b6c4e1ec89f0c98e96.zip
checkpatch: possible types -- known modifiers cannot be types
Ensure we do not inadvertantly load known modifiers up as possible types. 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-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 6d07b6778c91..9c209165f252 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -847,7 +847,7 @@ sub possible {
my ($possible, $line) = @_;
print "CHECK<$possible> ($line)\n" if ($dbg_possible > 1);
- if ($possible !~ /^(?:$Storage|$Type|DEFINE_\S+)$/ &&
+ if ($possible !~ /^(?:$Modifier|$Storage|$Type|DEFINE_\S+)$/ &&
$possible ne 'goto' && $possible ne 'return' &&
$possible ne 'case' && $possible ne 'else' &&
$possible ne 'asm' && $possible ne '__asm__' &&