summaryrefslogtreecommitdiff
path: root/include/linux/workqueue.h
diff options
context:
space:
mode:
authorYonghong Song <yonghong.song@linux.dev>2026-04-23 06:34:46 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-04-23 17:54:50 +0300
commit6a581b856c9e633c615483ad53910cba8cacbf28 (patch)
tree4f4553ce1b108da04fb0c10d00072019d559a1bb /include/linux/workqueue.h
parent8a16c5b2b22ff22c1a2e3ff92cc991990efceb38 (diff)
downloadlinux-6a581b856c9e633c615483ad53910cba8cacbf28.tar.xz
bpf: Refactor to avoid redundant calculation of bpf_reg_state
In many cases, once a bpf_reg_state is defined, it can pass to callee's. Otherwise, callee will need to get bpf_reg_state again based on regno. More importantly, this is needed for later stack arguments for kfuncs since the register state for stack arguments does not have a corresponding regno. So it makes sense to pass reg state for callee's. The following is the only change to avoid compilation warning: static int sanitize_check_bounds(struct bpf_verifier_env *env, const struct bpf_insn *insn, - const struct bpf_reg_state *dst_reg) + struct bpf_reg_state *dst_reg) Acked-by: Puranjay Mohan <puranjay@kernel.org> Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Reviewed-by: Amery Hung <ameryhung@gmail.com> Signed-off-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/r/20260423033446.2538321-1-yonghong.song@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions