scripts/checkpatch.pl: fix root dir detection and enable it
Don't try to find files specific for linux kernel.
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 7c0b45c..ee5fc06 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1016,9 +1016,9 @@
my ($root) = @_;
my @tree_check = (
- "COPYING", "CREDITS", "Kbuild", "Makefile",
- "README", "Documentation", "arch", "include", "drivers",
- "fs", "init", "ipc", "kernel", "lib", "scripts",
+ "LICENSE", "CODEOWNERS", "Kconfig", "Makefile",
+ "README.rst", "doc", "arch", "include", "drivers",
+ "boards", "kernel", "lib", "scripts",
);
foreach my $check (@tree_check) {