Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2f7aa4b authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Linus Torvalds
Browse files

checkpatch: do not warn about -p0 patches when checking files



We are triggering the -p0 check for our own diffs generated using --file
command line option.  Suppress this check for files.

Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f4a87736
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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");
			}