checkpatch: allow for type modifiers on multiple declarations
[firefly-linux-kernel-4.4.55.git] / scripts / checkpatch.pl
index 3961e759a256dbbbeaa30a47e2d2d1ccb1b6cc9d..bcfb8ef00feeb1a518a482412df0ec0c70871668 100755 (executable)
@@ -721,6 +721,10 @@ sub annotate_values {
                        print "DECLARE($1)\n" if ($dbg_values > 1);
                        $type = 'T';
 
+               } elsif ($cur =~ /^($Modifier)\s*/) {
+                       print "MODIFIER($1)\n" if ($dbg_values > 1);
+                       $type = 'T';
+
                } elsif ($cur =~ /^(\#\s*define\s*$Ident)(\(?)/o) {
                        print "DEFINE($1,$2)\n" if ($dbg_values > 1);
                        $av_preprocessor = 1;