Skip to content

Commit

Permalink
scripts/checkpatch.pl: fix root dir detection and enable it
Browse files Browse the repository at this point in the history
Don't try to find files specific for linux kernel.

Signed-off-by: Antony Pavlov <[email protected]>
  • Loading branch information
frantony authored and nashif committed May 22, 2019
1 parent 343e160 commit f08148e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .checkpatch.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
--mailback
--no-tree
--emacs
--summary-file
--show-types
Expand Down
6 changes: 3 additions & 3 deletions scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f08148e

Please sign in to comment.