]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - scripts/checkpatch.pl
checkpatch: handle casts better fixing false categorisation of : as binary
[mv-sheeva.git] / scripts / checkpatch.pl
index 8d010ac0efe151b5bc1cd23237c935cb80b2724b..3cec2990d51ef05842bf1f1fa93cc9ba78572d2e 100755 (executable)
@@ -845,6 +845,11 @@ sub annotate_values {
                                $av_preprocessor = 0;
                        }
 
+               } elsif ($cur =~ /^(\(\s*$Type\s*)\)/) {
+                       print "CAST($1)\n" if ($dbg_values > 1);
+                       push(@av_paren_type, $type);
+                       $type = 'C';
+
                } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\(|\s*$)/) {
                        print "DECLARE($1)\n" if ($dbg_values > 1);
                        $type = 'T';