From: Andy Whitcroft Date: Tue, 10 Jan 2012 23:10:11 +0000 (-0800) Subject: checkpatch: ensure cast type is unique in the context parser X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=addcdcea99514bee64b5bf091ac9fd2fc5da65cf;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index ba7bcf34ad0..497416c8360 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);