Merge tag 'devicetree-fixes-for-5.19-2' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / scripts / documentation-file-ref-check
index 7187ea5..68083f2 100755 (executable)
@@ -94,6 +94,9 @@ while (<IN>) {
        # Makefiles and scripts contain nasty expressions to parse docs
        next if ($f =~ m/Makefile/ || $f =~ m/\.sh$/);
 
+       # It doesn't make sense to parse hidden files
+       next if ($f =~ m#/\.#);
+
        # Skip this script
        next if ($f eq $scriptname);
 
@@ -144,6 +147,7 @@ while (<IN>) {
                if ($f =~ m/tools/) {
                        my $path = $f;
                        $path =~ s,(.*)/.*,$1,;
+                       $path =~ s,testing/selftests/bpf,bpf/bpftool,;
                        next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref"));
                }