From: Andy Whitcroft Date: Tue, 10 Jan 2012 23:10:13 +0000 (-0800) Subject: checkpatch: typeof may have more complex arguments X-Git-Tag: upstream/snapshot3+hdmi~8381^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b48db24e30d371bc54566667b82ca3d64aab80a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git checkpatch: typeof may have more complex arguments typeof may have various more complex forms as its arguement, not just an identifier. For now allow us to leak to the first close perenthesis ')'. 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 497416c..eb4b559 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -315,7 +315,7 @@ sub build_types { $NonptrType = qr{ (?:$Modifier\s+|const\s+)* (?: - (?:typeof|__typeof__)\s*\(\s*\**\s*$Ident\s*\)| + (?:typeof|__typeof__)\s*\([^\)]*\)| (?:$typeTypedefs\b)| (?:${all}\b) )