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: 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

authored by

Song Chen and committed by
Martin KaFai Lau
c9c9f6bf da4ab5dc

+2 -2
+2 -2
kernel/bpf/verifier.c
··· 10346 10346 return true; 10347 10347 } 10348 10348 10349 - static int check_func_proto(const struct bpf_func_proto *fn, int func_id) 10349 + static int check_func_proto(const struct bpf_func_proto *fn) 10350 10350 { 10351 10351 return check_raw_mode_ok(fn) && 10352 10352 check_arg_pair_ok(fn) && ··· 11521 11521 memset(&meta, 0, sizeof(meta)); 11522 11522 meta.pkt_access = fn->pkt_access; 11523 11523 11524 - err = check_func_proto(fn, func_id); 11524 + err = check_func_proto(fn); 11525 11525 if (err) { 11526 11526 verifier_bug(env, "incorrect func proto %s#%d", func_id_name(func_id), func_id); 11527 11527 return err;