]> git.puffer.fish Git - mirror/frr.git/commitdiff
tools: remove Linux kernel bits from checkpatch 9766/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 12 Oct 2021 22:01:43 +0000 (00:01 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 19 Oct 2021 12:58:51 +0000 (14:58 +0200)
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>
tools/checkpatch.pl

index 984112de051d232b9d3f8a59c617f3a9b1b6e12e..d2eb20ce5b7fc8c54aab9c0aaa971326029587ff 100755 (executable)
@@ -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