From c8e5427b05f6e855242148e599ee8233241c5992 Mon Sep 17 00:00:00 2001 From: Andy Whitcroft Date: Wed, 23 Jul 2008 21:29:07 -0700 Subject: [PATCH] --- yaml --- r: 105397 b: refs/heads/master c: d2172eb5bd4b7d06577113ec40635083619ca54a h: refs/heads/master i: 105395: 81e6b0a9726c6e6fa49ea7cb0c9d667934e7c367 v: v3 --- [refs] | 2 +- trunk/scripts/checkpatch.pl | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 3a43b863c243..9d83666dbe66 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7429c6903e3628fc2cfea65ec7e13bac030c7bfe +refs/heads/master: d2172eb5bd4b7d06577113ec40635083619ca54a diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index 077a2ca33043..53ec3946670d 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/scripts/checkpatch.pl @@ -168,12 +168,11 @@ ); sub build_types { - my $mods = "(?: \n" . join("|\n ", @modifierList) . "\n)"; - my $all = "(?: \n" . join("|\n ", @typeList) . "\n)"; + my $mods = "(?x: \n" . join("|\n ", @modifierList) . "\n)"; + my $all = "(?x: \n" . join("|\n ", @typeList) . "\n)"; $Modifier = qr{(?:$Attribute|$Sparse|$mods)}; $NonptrType = qr{ - (?:const\s+)? - (?:$mods\s+)? + (?:$Modifier\s+|const\s+)* (?: (?:typeof|__typeof__)\s*\(\s*\**\s*$Ident\s*\)| (?:${all}\b)