From: Andy Whitcroft Date: Thu, 8 Dec 2011 04:42:25 +0000 (+1100) Subject: checkpatch: ensure cast type is unique in the context parser X-Git-Tag: next-20111209~3^2~99 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e0a7a39409250beb995f5c12888a2b5021e355ba;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);