diff options
author | Andy Whitcroft <apw@shadowen.org> | 2008-07-24 04:29:08 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 17:47:26 (GMT) |
commit | 0221f55c142b0ac8baf6f0b6c4e1ec89f0c98e96 (patch) | |
tree | 49e16ea22f6247213e7fe7bba664ceba026ea783 /scripts/checkpatch.pl | |
parent | 8ea3eb9a20f39d5afa52900a34092b4b5f6b55cb (diff) | |
download | linux-fsl-qoriq-0221f55c142b0ac8baf6f0b6c4e1ec89f0c98e96.tar.xz |
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/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 6d07b67..9c20916 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__' && |