Skip to content
Permalink
Browse files

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>
  • Loading branch information...
frantony authored and nashif committed May 9, 2019
1 parent 343e160 commit f08148e640015161b254cfcd9c00c74d6f2ad09d
Showing with 3 additions and 4 deletions.
  1. +0 −1 .checkpatch.conf
  2. +3 −3 scripts/checkpatch.pl
@@ -1,5 +1,4 @@
--mailback
--no-tree
--emacs
--summary-file
--show-types
@@ -1016,9 +1016,9 @@ sub top_of_kernel_tree {
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) {

0 comments on commit f08148e

Please sign in to comment.
You can’t perform that action at this time.