From: Andy Whitcroft Date: Fri, 16 Dec 2011 04:50:20 +0000 (+1100) Subject: checkpatch: ensure cast type is unique in the context parser X-Git-Tag: next-20111221~2^2~94 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9206e487203f2f3220e647535b92d1ac005d88c5;p=karo-tx-linux.git checkpatch: ensure cast type is unique in the context parser Ensure the cast type is unique in the context parser, we do not want them to detect as a comma ','. Signed-off-by: Andy Whitcroft Cc: Joe Perches Signed-off-by: Andrew Morton --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index ba7bcf34ad01..497416c8360b 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1032,7 +1032,7 @@ sub annotate_values { } elsif ($cur =~ /^(\(\s*$Type\s*)\)/ && $av_pending eq '_') { print "CAST($1)\n" if ($dbg_values > 1); push(@av_paren_type, $type); - $type = 'C'; + $type = 'c'; } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\(|\s*$)/) { print "DECLARE($1)\n" if ($dbg_values > 1);