OSDN Git Service

scripts/documentation-file-ref-check: ignore sched-pelt false positive
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 26 Jun 2018 09:49:04 +0000 (06:49 -0300)
committerJonathan Corbet <corbet@lwn.net>
Mon, 2 Jul 2018 17:25:00 +0000 (11:25 -0600)
When Documentation/scheduler/sched-pelt.c is compiled, it generates
a file called Documentation/scheduler/sched-pelt. As this only
exists after building such tool, we need an explict check
to remove the false-positive.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/documentation-file-ref-check

index 857eb0d..ad9db68 100755 (executable)
@@ -75,6 +75,9 @@ while (<IN>) {
                # Remove URL false-positives
                next if ($fulref =~ m/^http/);
 
+               # Remove sched-pelt false-positive
+               next if ($fulref =~ m,^Documentation/scheduler/sched-pelt$,);
+
                # Discard some build examples from Documentation/target/tcm_mod_builder.txt
                next if ($fulref =~ m,mnt/sdb/lio-core-2.6.git/Documentation/target,);