* [PATCH 0/2] bpf, net: Fix smc for CONFIG_BPF_JIT=n
@ 2025-12-04 10:29 Geert Uytterhoeven
2025-12-04 19:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2025-12-04 10:29 UTC (permalink / raw)
To: Kui-Feng Lee, Martin KaFai Lau, D . Wythe, Dust Li,
Alexei Starovoitov, Daniel Borkmann, John Fastabend,
Sidraya Jayagond, Wenjia Zhang, Mahanta Jambigi, Tony Lu, Wen Gu,
David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Simon Horman
Cc: bpf, linux-rdma, linux-s390, netdev, linux-kernel,
Geert Uytterhoeven
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(-)
--
2.43.0
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH 0/2] bpf, net: Fix smc for CONFIG_BPF_JIT=n
2025-12-04 10:29 [PATCH 0/2] bpf, net: Fix smc for CONFIG_BPF_JIT=n Geert Uytterhoeven
@ 2025-12-04 19:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-12-04 19:20 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: thinker.li, martin.lau, alibuda, dust.li, ast, daniel,
john.fastabend, sidraya, wenjia, mjambigi, tonylu, guwen, davem,
edumazet, kuba, pabeni, horms, bpf, linux-rdma, linux-s390,
netdev, linux-kernel
Hello:
This series was applied to bpf/bpf.git (master)
by Martin KaFai Lau <martin.lau@kernel.org>:
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-04 19:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-04 10:29 [PATCH 0/2] bpf, net: Fix smc for CONFIG_BPF_JIT=n Geert Uytterhoeven
2025-12-04 19:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).