Skip to content

Commit 3888fa1

Browse files
eddyz87borkmann
authored andcommitted
docs/bpf: Fix "file doesn't exist" warnings in {llvm_reloc,btf}.rst
scripts/documentation-file-ref-check reports warnings for (valid) cross-links of form: :ref:`Documentation/bpf/btf <BTF_Ext_Section>` Adding extension to the file name helps to avoid the warning, e.g: :ref:`Documentation/bpf/btf.rst <BTF_Ext_Section>` Fixes: be4033d ("docs/bpf: Add description for CO-RE relocations") Reported-by: kernel test robot <[email protected]> Signed-off-by: Eduard Zingerman <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Jiri Olsa <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected] Link: https://lore.kernel.org/bpf/[email protected]
1 parent c1970e2 commit 3888fa1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/bpf/btf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ structure when .BTF.ext is generated. All ``bpf_core_relo`` structures
803803
within a single ``btf_ext_info_sec`` describe relocations applied to
804804
section named by ``btf_ext_info_sec->sec_name_off``.
805805

806-
See :ref:`Documentation/bpf/llvm_reloc <btf-co-re-relocations>`
806+
See :ref:`Documentation/bpf/llvm_reloc.rst <btf-co-re-relocations>`
807807
for more information on CO-RE relocations.
808808

809809
4.2 .BTF_ids section

Documentation/bpf/llvm_reloc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ CO-RE Relocations
250250
From object file point of view CO-RE mechanism is implemented as a set
251251
of CO-RE specific relocation records. These relocation records are not
252252
related to ELF relocations and are encoded in .BTF.ext section.
253-
See :ref:`Documentation/bpf/btf <BTF_Ext_Section>` for more
253+
See :ref:`Documentation/bpf/btf.rst <BTF_Ext_Section>` for more
254254
information on .BTF.ext structure.
255255

256256
CO-RE relocations are applied to BPF instructions to update immediate

0 commit comments

Comments
 (0)