summaryrefslogtreecommitdiffstats
path: root/tools/checkpatch.pl
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-10-13 00:01:43 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-10-19 14:58:51 +0200
commit7c1803d0a0aa068a1b2e7256df48b0a36f46f14a (patch)
treecaeaa63ab1ffeb46250d010ee1676613d1fd21a3 /tools/checkpatch.pl
parenttools: add iterators to checkpatch (diff)
downloadfrr-7c1803d0a0aa068a1b2e7256df48b0a36f46f14a.tar.xz
frr-7c1803d0a0aa068a1b2e7256df48b0a36f46f14a.zip
tools: remove Linux kernel bits from checkpatch
These aren't appropriate for use in FRR. Among other things, this enables running checkpatch by calling it in a git working tree with `tools/checkpatch.pl -g origin/master..` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to '')
-rwxr-xr-xtools/checkpatch.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/checkpatch.pl b/tools/checkpatch.pl
index 984112de0..d2eb20ce5 100755
--- a/tools/checkpatch.pl
+++ b/tools/checkpatch.pl
@@ -1028,9 +1028,9 @@ sub top_of_kernel_tree {
my ($root) = @_;
my @tree_check = (
- "COPYING", "CREDITS", "Kbuild", "MAINTAINERS", "Makefile",
- "README", "Documentation", "arch", "include", "drivers",
- "fs", "init", "ipc", "kernel", "lib", "scripts",
+ "COPYING", "configure.ac", "Makefile.am",
+ "README.md", "doc", "lib", "vtysh", "watchfrr", "tests",
+ "zebra", "bgpd", "ospfd", "ospf6d", "isisd", "staticd",
);
foreach my $check (@tree_check) {
@@ -2674,8 +2674,8 @@ sub process {
(defined($1) || defined($2))))) {
$is_patch = 1;
$reported_maintainer_file = 1;
- WARN("FILE_PATH_CHANGES",
- "added, moved or deleted file(s), does MAINTAINERS need updating?\n" . $herecurr);
+ #WARN("FILE_PATH_CHANGES",
+ # "added, moved or deleted file(s), does MAINTAINERS need updating?\n" . $herecurr);
}
# Check for wrappage within a valid hunk of the file