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 | 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; |