aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 5ffc940399be..92d13710ff52 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1658,7 +1658,7 @@ sub process {
1658 1658
1659# * goes on variable not on type 1659# * goes on variable not on type
1660 # (char*[ const]) 1660 # (char*[ const])
1661 if ($line =~ m{\($NonptrType(\s*\*[\s\*]*(?:$Modifier\s*)*)\)}) { 1661 if ($line =~ m{\($NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)\)}) {
1662 my ($from, $to) = ($1, $1); 1662 my ($from, $to) = ($1, $1);
1663 1663
1664 # Should start with a space. 1664 # Should start with a space.
@@ -1673,7 +1673,7 @@ sub process {
1673 if ($from ne $to) { 1673 if ($from ne $to) {
1674 ERROR("\"(foo$from)\" should be \"(foo$to)\"\n" . $herecurr); 1674 ERROR("\"(foo$from)\" should be \"(foo$to)\"\n" . $herecurr);
1675 } 1675 }
1676 } elsif ($line =~ m{\b$NonptrType(\s*\*[\s\*]*(?:$Modifier\s*)?)($Ident)}) { 1676 } elsif ($line =~ m{\b$NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)($Ident)}) {
1677 my ($from, $to, $ident) = ($1, $1, $2); 1677 my ($from, $to, $ident) = ($1, $1, $2);
1678 1678
1679 # Should start with a space. 1679 # Should start with a space.