diff options
author | Andy Whitcroft <apw@shadowen.org> | 2008-07-24 00:29:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:26 -0400 |
commit | 389a2fe57ffc59a649bea39db4d7e6d2eff2b562 (patch) | |
tree | f5f0492710f0331a5057281272e89797f38d1b80 /scripts/checkpatch.pl | |
parent | 3c232147a7d5b0418b0a0bae0e5b9a62fb81f4f2 (diff) |
checkpatch: allow for type modifiers on multiple declarations
Allow for type modifiers mid declaration on multiple declarations:
struct mxser_mstatus ms, __user *msu = argp;
Reported by Jiri Slaby.
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 3961e759a256..bcfb8ef00fee 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -721,6 +721,10 @@ sub annotate_values { | |||
721 | print "DECLARE($1)\n" if ($dbg_values > 1); | 721 | print "DECLARE($1)\n" if ($dbg_values > 1); |
722 | $type = 'T'; | 722 | $type = 'T'; |
723 | 723 | ||
724 | } elsif ($cur =~ /^($Modifier)\s*/) { | ||
725 | print "MODIFIER($1)\n" if ($dbg_values > 1); | ||
726 | $type = 'T'; | ||
727 | |||
724 | } elsif ($cur =~ /^(\#\s*define\s*$Ident)(\(?)/o) { | 728 | } elsif ($cur =~ /^(\#\s*define\s*$Ident)(\(?)/o) { |
725 | print "DEFINE($1,$2)\n" if ($dbg_values > 1); | 729 | print "DEFINE($1,$2)\n" if ($dbg_values > 1); |
726 | $av_preprocessor = 1; | 730 | $av_preprocessor = 1; |