* [PATCH 0/2] Two fixes for documentation-file-ref-check
@ 2021-10-19 7:42 Mauro Carvalho Chehab
2021-10-19 7:42 ` [PATCH 2/2] scripts: documentation-file-ref-check: fix bpf selftests path Mauro Carvalho Chehab
2021-10-26 15:42 ` [PATCH 0/2] Two fixes for documentation-file-ref-check Jonathan Corbet
0 siblings, 2 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2021-10-19 7:42 UTC (permalink / raw)
To: Linux Doc Mailing List, Jonathan Corbet
Cc: Mauro Carvalho Chehab, linux-kernel, John Fastabend, KP Singh,
Martin KaFai Lau, Mauro Carvalho Chehab, Song Liu, Yonghong Song,
bpf, netdev
Hi Jon,
This small series contain two fixes for documentation-file-ref-check,
in order to remove some (false) positives.
The first one makes it to ignore files that start with a dot. It
prevents the script to try parsing hidden files.
The second one shuts up (currently) two false-positives for some
documents under:
tools/bpf/bpftool/Documentation/
Mauro Carvalho Chehab (2):
scripts: documentation-file-ref-check: ignore hidden files
scripts: documentation-file-ref-check: fix bpf selftests path
scripts/documentation-file-ref-check | 4 ++++
1 file changed, 4 insertions(+)
--
2.31.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] scripts: documentation-file-ref-check: fix bpf selftests path
2021-10-19 7:42 [PATCH 0/2] Two fixes for documentation-file-ref-check Mauro Carvalho Chehab
@ 2021-10-19 7:42 ` Mauro Carvalho Chehab
2021-10-26 15:42 ` [PATCH 0/2] Two fixes for documentation-file-ref-check Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2021-10-19 7:42 UTC (permalink / raw)
To: Linux Doc Mailing List, Jonathan Corbet
Cc: Mauro Carvalho Chehab, Alexei Starovoitov, Andrii Nakryiko,
Daniel Borkmann, John Fastabend, KP Singh, Martin KaFai Lau,
Mauro Carvalho Chehab, Song Liu, Yonghong Song, bpf, linux-kernel,
netdev
tools/testing/selftests/bpf/test_bpftool_synctypes.py use
relative patches on the top of BPFTOOL_DIR:
BPFTOOL_DIR = os.path.join(LINUX_ROOT, 'tools/bpf/bpftool')
Change the script to automatically convert:
testing/selftests/bpf -> bpf/bpftool
In order to properly check the files used by such script.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
---
To mailbombing on a large number of people, only mailing lists were C/C on the cover.
See [PATCH 0/2] at: https://lore.kernel.org/all/cover.1634629094.git.mchehab+huawei@kernel.org/
scripts/documentation-file-ref-check | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/documentation-file-ref-check b/scripts/documentation-file-ref-check
index 6865d8e63d5c..68083f2f1122 100755
--- a/scripts/documentation-file-ref-check
+++ b/scripts/documentation-file-ref-check
@@ -147,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"));
}
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 0/2] Two fixes for documentation-file-ref-check
2021-10-19 7:42 [PATCH 0/2] Two fixes for documentation-file-ref-check Mauro Carvalho Chehab
2021-10-19 7:42 ` [PATCH 2/2] scripts: documentation-file-ref-check: fix bpf selftests path Mauro Carvalho Chehab
@ 2021-10-26 15:42 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2021-10-26 15:42 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Linux Doc Mailing List
Cc: Mauro Carvalho Chehab, linux-kernel, John Fastabend, KP Singh,
Martin KaFai Lau, Mauro Carvalho Chehab, Song Liu, Yonghong Song,
bpf, netdev
Mauro Carvalho Chehab <mchehab+huawei@kernel.org> writes:
> Hi Jon,
>
> This small series contain two fixes for documentation-file-ref-check,
> in order to remove some (false) positives.
>
> The first one makes it to ignore files that start with a dot. It
> prevents the script to try parsing hidden files.
>
> The second one shuts up (currently) two false-positives for some
> documents under:
>
> tools/bpf/bpftool/Documentation/
>
> Mauro Carvalho Chehab (2):
> scripts: documentation-file-ref-check: ignore hidden files
> scripts: documentation-file-ref-check: fix bpf selftests path
>
> scripts/documentation-file-ref-check | 4 ++++
> 1 file changed, 4 insertions(+)
Set applied, thanks.
jon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-10-26 15:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-19 7:42 [PATCH 0/2] Two fixes for documentation-file-ref-check Mauro Carvalho Chehab
2021-10-19 7:42 ` [PATCH 2/2] scripts: documentation-file-ref-check: fix bpf selftests path Mauro Carvalho Chehab
2021-10-26 15:42 ` [PATCH 0/2] Two fixes for documentation-file-ref-check Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).