From c9c9f6bf7fbcec4bc1cba845633e48035b883630 Mon Sep 17 00:00:00 2001 From: Song Chen Date: Mon, 5 Jan 2026 23:50:09 +0800 Subject: [PATCH] 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: Song Chen Signed-off-by: Martin KaFai Lau Link: https://patch.msgid.link/20260105155009.4581-1-chensong_2000@189.cn --- kernel/bpf/verifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 9d3ad2876d8f2..092003cc78417 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -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; -- 2.47.3