From: Andy Whitcroft Date: Tue, 10 Jan 2012 23:10:13 +0000 (-0800) Subject: checkpatch: typeof may have more complex arguments X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b48db24e30d371bc54566667b82ca3d64aab80a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 497416c8360..eb4b55940c0 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) )