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

Configure Feed

Select the types of activity you want to include in your feed.

bpf: Fix bpf_cgroup_from_id() doxygen header

In commit 332ea1f697be ("bpf: Add bpf_cgroup_from_id() kfunc"), a new
bpf_cgroup_from_id() kfunc was added which allows a BPF program to
lookup and acquire a reference to a cgroup from a cgroup id. The
commit's doxygen comment seems to have copy-pasted fields, which causes
BPF kfunc helper documentation to fail to render:

<snip>/helpers.c:2114: warning: Excess function parameter 'cgrp'...
<snip>/helpers.c:2114: warning: Excess function parameter 'level'...

<snip>

<snip>/helpers.c:2114: warning: Excess function parameter 'level'...

This patch fixes the doxygen header.

Fixes: 332ea1f697be ("bpf: Add bpf_cgroup_from_id() kfunc")
Signed-off-by: David Vernet <void@manifault.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20230228152845.294695-1-void@manifault.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

David Vernet and committed by
Alexei Starovoitov
30a2d832 7364d60c

+1 -2
+1 -2
kernel/bpf/helpers.c
··· 2106 2106 * bpf_cgroup_from_id - Find a cgroup from its ID. A cgroup returned by this 2107 2107 * kfunc which is not subsequently stored in a map, must be released by calling 2108 2108 * bpf_cgroup_release(). 2109 - * @cgrp: The cgroup for which we're performing a lookup. 2110 - * @level: The level of ancestor to look up. 2109 + * @cgid: cgroup id. 2111 2110 */ 2112 2111 __bpf_kfunc struct cgroup *bpf_cgroup_from_id(u64 cgid) 2113 2112 {