History

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.

Andy Whitcroft committed 18 years ago

Commit 389a2fe1 parent 3c232141 file · +4 −0Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+4−0
@@ -721,6 +721,10 @@ sub annotate_values { · 720 unmodified lines
721721 print "DECLARE($1)\n" if ($dbg_values > 1);
722722 $type = 'T';
723723
724+ } elsif ($cur =~ /^($Modifier)\s*/) {
725+ print "MODIFIER($1)\n" if ($dbg_values > 1);
726+ $type = 'T';
727+
724728 } elsif ($cur =~ /^(\#\s*define\s*$Ident)(\(?)/o) {
725729 print "DEFINE($1,$2)\n" if ($dbg_values > 1);
726730 $av_preprocessor = 1;