From 03e9bb89bd88f7153e926c7c3088ff5452d245cb Mon Sep 17 00:00:00 2001 From: Andy Whitcroft Date: Fri, 27 Feb 2009 14:03:06 -0800 Subject: [PATCH] --- yaml --- r: 131843 b: refs/heads/master c: e2f7aa4b8bc811ebf8afbdf423caf90a5a03cb08 h: refs/heads/master i: 131841: 7431f1cf27f58c16cc1d60d0d96d8a0faf457215 131839: 7aaa65476cbeec8e26dfb2fd6c01f9c642e8d5cd v: v3 --- [refs] | 2 +- trunk/scripts/checkpatch.pl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index f42e7a5b7996..cde5a6c6fb28 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f4a8773676c21a68b0666fbe48af4fe1af89dfa9 +refs/heads/master: e2f7aa4b8bc811ebf8afbdf423caf90a5a03cb08 diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index c71a0fae84df..5ffc940399be 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/scripts/checkpatch.pl @@ -1240,7 +1240,8 @@ sub process { $realfile =~ s@^([^/]*)/@@; $p1_prefix = $1; - if ($tree && $p1_prefix ne '' && -e "$root/$p1_prefix") { + if (!$file && $tree && $p1_prefix ne '' && + -e "$root/$p1_prefix") { WARN("patch prefix '$p1_prefix' exists, appears to be a -p0 patch\n"); }