Skip to contentSkip to conversation

bpf, net: Fix smc for CONFIG_BPF_JIT=n

PATCH New Geert Uytterhoeven 2 participants 2 messages Dec 4, 2025

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover 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
#1 lore raw
This series was applied to bpf/bpf.git (master) by Martin KaFai Lau <[email protected]>:

Hello:

This series was applied to bpf/bpf.git (master)
by Martin KaFai Lau <[email protected]>:

Quoted 10 lines · On Thu, 4 Dec 2025 11:29:14 +0100 you wrote:

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.

[...]

Here is the summary with links:
- [1/2] bpf: Fix register_bpf_struct_ops() dummy (no matching commit)
- [2/2] net: smc: SMC_HS_CTRL_BPF should depend on BPF_JIT

    https://git.kernel.org/bpf/bpf/c/861111b69896

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html