summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorSong Chen <chensong_2000@189.cn>2026-01-05 23:50:09 +0800
committerMartin KaFai Lau <martin.lau@kernel.org>2026-01-13 10:00:15 -0800
commitc9c9f6bf7fbcec4bc1cba845633e48035b883630 (patch)
treeff300962f1f6f886045c008fc027e2d098c5bfb3 /kernel
parentda4ab5dcc975d5221611f36467eadc5e32b5a1ad (diff)
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 <chensong_2000@189.cn> Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://patch.msgid.link/20260105155009.4581-1-chensong_2000@189.cn
Diffstat (limited to 'kernel')
-rw-r--r--kernel/bpf/verifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index 9d3ad2876d8f..092003cc7841 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;