[Devel] [PATCH] scripts/checkpatch.pl: fixed regression after COPYING was renamed

Valeriy Vdovin valeriy.vdovin at virtuozzo.com
Wed Jan 20 01:51:49 MSK 2021


fixes: 90e3b8f80b22002418d3056438a82837769c4691
checpatch.pl first checks that the script is run from top of kernel tree.
it does so by calling top_of_kernel_tree function, which has a hardcoded
set of files that are enough to identify top of tree by their presence.
The troublesome patch renames COPYING by adding prefix and so the check
fails.

Signed-off-by: Valeriy Vdovin <valeriy.vdovin at virtuozzo.com>
---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 4d80526..cb9cddd 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1069,7 +1069,7 @@ sub top_of_kernel_tree {
 	my ($root) = @_;
 
 	my @tree_check = (
-		"COPYING", "CREDITS", "Kbuild", "MAINTAINERS", "Makefile",
+		"COPYING-4.18.0", "CREDITS", "Kbuild", "MAINTAINERS", "Makefile",
 		"README", "Documentation", "arch", "include", "drivers",
 		"fs", "init", "ipc", "kernel", "lib", "scripts",
 	);
-- 
1.8.3.1



More information about the Devel mailing list