Commit 32db18d6 authored by Bagas Sanjaya's avatar Bagas Sanjaya Committed by Daniel Borkmann

bpf, doc: Do not link to docs.kernel.org for kselftest link

The question on how to run BPF selftests have a reference link to kernel
selftest documentation (Documentation/dev-tools/kselftest.rst). However,
it uses external link to the documentation at kernel.org/docs (aka
docs.kernel.org) instead, which requires Internet access.

Fix this and replace the link with internal linking, by using :doc: directive
while keeping the anchor text.

Fixes: b7a27c3a ("bpf, doc: howto use/run the BPF selftests")
Signed-off-by: default avatarBagas Sanjaya <bagasdotme@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230228074523.11493-2-bagasdotme@gmail.com
parent d900f3d2
...@@ -461,8 +461,8 @@ needed:: ...@@ -461,8 +461,8 @@ needed::
$ sudo make run_tests $ sudo make run_tests
See the kernels selftest `Documentation/dev-tools/kselftest.rst`_ See :doc:`kernel selftest documentation </dev-tools/kselftest>`
document for further documentation. for details.
To maximize the number of tests passing, the .config of the kernel To maximize the number of tests passing, the .config of the kernel
under test should match the config file fragment in under test should match the config file fragment in
...@@ -688,7 +688,5 @@ when: ...@@ -688,7 +688,5 @@ when:
.. _netdev-FAQ: Documentation/process/maintainer-netdev.rst .. _netdev-FAQ: Documentation/process/maintainer-netdev.rst
.. _selftests: .. _selftests:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/bpf/ https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/bpf/
.. _Documentation/dev-tools/kselftest.rst:
https://www.kernel.org/doc/html/latest/dev-tools/kselftest.html
Happy BPF hacking! Happy BPF hacking!
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment