Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bpf, docs: Fix final bpf docs build failure

maps.rst in the BPF documentation links to the
/userspace-api/ebpf/syscall document
(Documentation/userspace-api/ebpf/syscall.rst). For some reason, if you
try to reference the document with :doc:, the docs build emits the
following warning:

./Documentation/bpf/maps.rst:13: WARNING: \
unknown document: '/userspace-api/ebpf/syscall'

It appears that other places in the docs tree also don't support using
:doc:. Elsewhere in the BPF documentation, we just reference the kernel
docs page directly. Let's do that here to clean up the last remaining
noise in the docs build.

Signed-off-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/r/20230302183918.54190-2-void@manifault.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

David Vernet and committed by
Alexei Starovoitov
cacad346 d56b0c46

+4 -3
+4 -3
Documentation/bpf/maps.rst
··· 11 11 `man-pages`_ for `bpf-helpers(7)`_. 12 12 13 13 BPF maps are accessed from user space via the ``bpf`` syscall, which provides 14 - commands to create maps, lookup elements, update elements and delete 15 - elements. More details of the BPF syscall are available in 16 - :doc:`/userspace-api/ebpf/syscall` and in the `man-pages`_ for `bpf(2)`_. 14 + commands to create maps, lookup elements, update elements and delete elements. 15 + More details of the BPF syscall are available in `ebpf-syscall`_ and in the 16 + `man-pages`_ for `bpf(2)`_. 17 17 18 18 Map Types 19 19 ========= ··· 79 79 .. _man-pages: https://www.kernel.org/doc/man-pages/ 80 80 .. _bpf(2): https://man7.org/linux/man-pages/man2/bpf.2.html 81 81 .. _bpf-helpers(7): https://man7.org/linux/man-pages/man7/bpf-helpers.7.html 82 + .. _ebpf-syscall: https://docs.kernel.org/userspace-api/ebpf/syscall.html