提交 e662c775 编写于 作者: M Maryam Tahhan 提交者: Daniel Borkmann

bpf, docs: Fixup cpumap sphinx >= 3.1 warning

Fixup bpf_map_update_elem() declaration to use a single line.
Reported-by: NAkira Yokosawa <akiyks@gmail.com>
Signed-off-by: NMaryam Tahhan <mtahhan@redhat.com>
Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
Tested-by: NAkira Yokosawa <akiyks@gmail.com>
Acked-by: NStanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20221113103327.3287482-1-mtahhan@redhat.com
上级 dfd0afbf
...@@ -48,8 +48,7 @@ Userspace ...@@ -48,8 +48,7 @@ Userspace
program will result in the program failing to load and a verifier warning. program will result in the program failing to load and a verifier warning.
.. c:function:: .. c:function::
int bpf_map_update_elem(int fd, const void *key, const void *value, int bpf_map_update_elem(int fd, const void *key, const void *value, __u64 flags);
__u64 flags);
CPU entries can be added or updated using the ``bpf_map_update_elem()`` CPU entries can be added or updated using the ``bpf_map_update_elem()``
helper. This helper replaces existing elements atomically. The ``value`` parameter helper. This helper replaces existing elements atomically. The ``value`` parameter
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册