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>
This commit is contained in:
Antony Pavlov 2019-05-09 16:39:59 +03:00 committed by Anas Nashif
commit f08148e640
2 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,4 @@
--mailback --mailback
--no-tree
--emacs --emacs
--summary-file --summary-file
--show-types --show-types

View file

@ -1016,9 +1016,9 @@ sub top_of_kernel_tree {
my ($root) = @_; my ($root) = @_;
my @tree_check = ( my @tree_check = (
"COPYING", "CREDITS", "Kbuild", "Makefile", "LICENSE", "CODEOWNERS", "Kconfig", "Makefile",
"README", "Documentation", "arch", "include", "drivers", "README.rst", "doc", "arch", "include", "drivers",
"fs", "init", "ipc", "kernel", "lib", "scripts", "boards", "kernel", "lib", "scripts",
); );
foreach my $check (@tree_check) { foreach my $check (@tree_check) {