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: update outdated comment for refactored btf_check_kfunc_arg_match()

The function btf_check_kfunc_arg_match() was refactored into
check_kfunc_args() by commit 00b85860feb8 ("bpf: Rewrite kfunc
argument handling"). Update the comment accordingly.

Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Reviewed-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Link: https://lore.kernel.org/r/20260321105658.6006-1-kexinsun@smail.nju.edu.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Kexin Sun and committed by
Alexei Starovoitov
70b5f3f7 70275388

+1 -1
+1 -1
kernel/bpf/verifier.c
··· 14505 14505 if (btf_type_is_ptr(t)) 14506 14506 mark_btf_func_reg_size(env, regno, sizeof(void *)); 14507 14507 else 14508 - /* scalar. ensured by btf_check_kfunc_arg_match() */ 14508 + /* scalar. ensured by check_kfunc_args() */ 14509 14509 mark_btf_func_reg_size(env, regno, t->size); 14510 14510 } 14511 14511