]> Gentwo Git Trees - linux/.git/commit
bpf: removed unused 'env' parameter from is_reg64 and insn_has_def32
authorEduard Zingerman <eddyz87@gmail.com>
Thu, 7 Aug 2025 01:02:04 +0000 (18:02 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 7 Aug 2025 16:17:02 +0000 (09:17 -0700)
commitcb070a8156c16383cad5e4d9f678b7273f0208cd
treec209d74d9544d6f6f8011fd374ae31c9f2a0c4af
parent911c0359d8f6da3ffdeee52886f820fbf1c7fa5c
bpf: removed unused 'env' parameter from is_reg64 and insn_has_def32

Parameter 'env' is not used by is_reg64() and insn_has_def32()
functions. Remove the parameter to make it clear that neither function
depends on 'env' state, e.g. env->insn_aux_data.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20250807010205.3210608-2-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c