From c2833978049400f1e60f186270f834f54f1ecc2f Mon Sep 17 00:00:00 2001 From: Andy Whitcroft Date: Wed, 23 Jul 2008 21:29:12 -0700 Subject: [PATCH] --- yaml --- r: 105405 b: refs/heads/master c: 234fff6515a11cf3e67c793146689da426787fea h: refs/heads/master i: 105403: d439000e2470b27c094cf169c99f5d392238baa0 v: v3 --- [refs] | 2 +- trunk/scripts/checkpatch.pl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 95a44484c709..dd20e50c0807 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 292f1a9b342d763f94ea3915726a48905be4acd1 +refs/heads/master: 234fff6515a11cf3e67c793146689da426787fea diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index 96a762be5748..022ee557b681 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/scripts/checkpatch.pl @@ -1435,11 +1435,11 @@ sub process { ERROR("\"(foo $1 )\" should be \"(foo $1)\"\n" . $herecurr); - } elsif ($line =~ m{$NonptrType(\*+)(?:\s+(?:$Attribute|$Sparse))?\s+[A-Za-z\d_]+}) { + } elsif ($line =~ m{\b$NonptrType(\*+)(?:\s+(?:$Attribute|$Sparse))?\s+[A-Za-z\d_]+}) { ERROR("\"foo$1 bar\" should be \"foo $1bar\"\n" . $herecurr); - } elsif ($line =~ m{$NonptrType\s+(\*+)(?!\s+(?:$Attribute|$Sparse))\s+[A-Za-z\d_]+}) { + } elsif ($line =~ m{\b$NonptrType\s+(\*+)(?!\s+(?:$Attribute|$Sparse))\s+[A-Za-z\d_]+}) { ERROR("\"foo $1 bar\" should be \"foo $1bar\"\n" . $herecurr); }