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)