diff options
| author | Donald Hunter <donald.hunter@gmail.com> | 2022-11-22 14:39:33 +0000 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-11-24 01:05:04 +0100 |
| commit | 539886a32a6a4601241d928dc8b776b052c04ed0 (patch) | |
| tree | 8fdf2de8f0c6dcd04be2d6b2f222136e5d48d740 /Documentation/bpf/map_of_maps.rst | |
| parent | 8e898aaa733eca61393fc036c8a4b5834fee5dd3 (diff) | |
| download | linux-539886a32a6a4601241d928dc8b776b052c04ed0.tar.gz linux-539886a32a6a4601241d928dc8b776b052c04ed0.tar.bz2 linux-539886a32a6a4601241d928dc8b776b052c04ed0.zip | |
docs/bpf: Fix sphinx warnings in BPF map docs
Fix duplicate C declaration warnings when using sphinx >= 3.1.
Reported-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Akira Yokosawa <akiyks@gmail.com>
Link: https://lore.kernel.org/bpf/ed4dac84-1b12-5c58-e4de-93ab9ac67c09@gmail.com
Link: https://lore.kernel.org/bpf/20221122143933.91321-1-donald.hunter@gmail.com
Diffstat (limited to 'Documentation/bpf/map_of_maps.rst')
| -rw-r--r-- | Documentation/bpf/map_of_maps.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/bpf/map_of_maps.rst b/Documentation/bpf/map_of_maps.rst index 07212b9227a9..7b5617c2d017 100644 --- a/Documentation/bpf/map_of_maps.rst +++ b/Documentation/bpf/map_of_maps.rst @@ -45,7 +45,11 @@ Usage Kernel BPF Helper ----------------- -.. c:function:: +bpf_map_lookup_elem() +~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: c + void *bpf_map_lookup_elem(struct bpf_map *map, const void *key) Inner maps can be retrieved using the ``bpf_map_lookup_elem()`` helper. This |
