Skip to content

Commit a78513c

Browse files
committed
scripts/documentation-file-ref-check: check tools/*/Documentation
Some files, like tools/memory-model/README has references to a Documentation file that is locale to it. Handle references that are relative to them too. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Acked-by: Jonathan Corbet <corbet@lwn.net>
1 parent 2d69708 commit a78513c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/documentation-file-ref-check

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ while (<IN>) {
7878
# Check if exists, evaluating wildcards
7979
next if (grep -e, glob("$ref $fulref"));
8080

81+
# Accept relative Documentation patches for tools/
82+
if ($f =~ m/tools/) {
83+
my $path = $f;
84+
$path =~ s,(.*)/.*,$1,;
85+
next if (grep -e, glob("$path/$ref $path/$fulref"));
86+
}
87+
8188
if ($fix) {
8289
if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) {
8390
$broken_ref{$ref}++;

0 commit comments

Comments
 (0)