bpf, net: Fix smc for CONFIG_BPF_JIT=n
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 2 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] bpf, net: Fix smc for CONFIG_BPF_JIT=n
Hi all,
If CONFIG_BPF_SYSCALL=y, but CONFIG_BPF_JIT=n (e.g. m68k/allmodconfig), net/smc/smc_hs_bpf.c fails to build.
This patch series fix the issue in two ways, by:
1. fixing the dummy variant of register_bpf_struct_ops(),
2. making SMC_HS_CTRL_BPF depend on BPF_JIT.
So far the broken dummy was never detected: until the introduction of SMC_HS_CTRL_BPF, all users of register_bpf_struct_ops() depended on both BPF_SYSCALL and BPF_JIT.
Thanks!
Geert Uytterhoeven (2):
bpf: Fix register_bpf_struct_ops() dummy
net: smc: SMC_HS_CTRL_BPF should depend on BPF_JIT
include/linux/bpf.h | 6 +++++- net/smc/Kconfig | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-)
Signature · 12 lines
2.43.0
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds