]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bpf: update outdated comment for refactored btf_check_kfunc_arg_match()
authorKexin Sun <kexinsun@smail.nju.edu.cn>
Sat, 21 Mar 2026 10:56:58 +0000 (18:56 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 24 Mar 2026 20:37:29 +0000 (13:37 -0700)
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>
kernel/bpf/verifier.c

index c30c7773bc1f396f6ffb731ef0ba673e5b598905..70a100dd4d0c385abda4c61d3feb11a0589f1a85 100644 (file)
@@ -14505,7 +14505,7 @@ static int check_kfunc_call(struct bpf_verifier_env *env, struct bpf_insn *insn,
                if (btf_type_is_ptr(t))
                        mark_btf_func_reg_size(env, regno, sizeof(void *));
                else
-                       /* scalar. ensured by btf_check_kfunc_arg_match() */
+                       /* scalar. ensured by check_kfunc_args() */
                        mark_btf_func_reg_size(env, regno, t->size);
        }