Commit c9c9f6bf authored by Song Chen's avatar Song Chen Committed by Martin KaFai Lau
Browse files

bpf: Remove an unused parameter in check_func_proto



The func_id parameter is not needed in check_func_proto.
This patch removes it.

Signed-off-by: default avatarSong Chen <chensong_2000@189.cn>
Signed-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20260105155009.4581-1-chensong_2000@189.cn
parent da4ab5dc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -10346,7 +10346,7 @@ static bool check_btf_id_ok(const struct bpf_func_proto *fn)
	return true;
}
static int check_func_proto(const struct bpf_func_proto *fn, int func_id)
static int check_func_proto(const struct bpf_func_proto *fn)
{
	return check_raw_mode_ok(fn) &&
	       check_arg_pair_ok(fn) &&
@@ -11521,7 +11521,7 @@ static int check_helper_call(struct bpf_verifier_env *env, struct bpf_insn *insn
	memset(&meta, 0, sizeof(meta));
	meta.pkt_access = fn->pkt_access;
	err = check_func_proto(fn, func_id);
	err = check_func_proto(fn);
	if (err) {
		verifier_bug(env, "incorrect func proto %s#%d", func_id_name(func_id), func_id);
		return err;