aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2012-01-10 18:10:13 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-10 19:30:51 -0500
commit6b48db24e30d371bc54566667b82ca3d64aab80a (patch)
tree4532e530d3e97917dc8a82bfc1f23f91e9627150 /scripts/checkpatch.pl
parentaddcdcea99514bee64b5bf091ac9fd2fc5da65cf (diff)
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 <apw@canonical.com> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 497416c8360b..eb4b55940c0e 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -315,7 +315,7 @@ sub build_types {
315 $NonptrType = qr{ 315 $NonptrType = qr{
316 (?:$Modifier\s+|const\s+)* 316 (?:$Modifier\s+|const\s+)*
317 (?: 317 (?:
318 (?:typeof|__typeof__)\s*\(\s*\**\s*$Ident\s*\)| 318 (?:typeof|__typeof__)\s*\([^\)]*\)|
319 (?:$typeTypedefs\b)| 319 (?:$typeTypedefs\b)|
320 (?:${all}\b) 320 (?:${all}\b)
321 ) 321 )