Allow for type modifiers mid declaration on multiple declarations: struct mxser_mstatus ms, __user *msu = argp; Reported by Jiri Slaby.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -721,6 +721,10 @@ sub annotate_values { · 720 unmodified lines | ||
| 721 | 721 | print "DECLARE($1)\n" if ($dbg_values > 1); |
| 722 | 722 | $type = 'T'; |
| 723 | 723 | |
| 724 | + } elsif ($cur =~ /^($Modifier)\s*/) { | |
| 725 | + print "MODIFIER($1)\n" if ($dbg_values > 1); | |
| 726 | + $type = 'T'; | |
| 727 | + | |
| 724 | 728 | } elsif ($cur =~ /^(\#\s*define\s*$Ident)(\(?)/o) { |
| 725 | 729 | print "DEFINE($1,$2)\n" if ($dbg_values > 1); |
| 726 | 730 | $av_preprocessor = 1; |