netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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

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).