linux/arch/powerpc/net
Saket Kumar Bhaskar e1e5e68251 powerpc64/bpf: Fix build break for arch_bpf_timed_may_goto
With CONFIG_PPC_KERNEL_PCREL enabled, calling bpf_check_timed_may_goto()
using a bl instruction results in a link-time failure:

arch/powerpc/net/bpf_timed_may_goto.o: in function `arch_bpf_timed_may_goto':
(.text+0x28): call to `bpf_check_timed_may_goto' lacks nop, can't restore toc

Use CFUNC() macro instead of direct 'bl' to properly annotate the call
to bpf_check_timed_may_goto(). On PCREL builds, CFUNC() expands to
'bl name@notoc', informing the linker that TOC restoration is not
needed, avoiding the "lacks nop, can't restore toc" linker error.

Fixes: b55b6b9ad7 ("powerpc64/bpf: Add powerpc64 JIT support for timed may_goto")
Signed-off-by: Saket Kumar Bhaskar <skb99@linux.ibm.com>
Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Reviewed-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/f75e5aa911afb984a94c0e85d58b1be5fb428548.1785387718.git.skb99@linux.ibm.com
2026-08-03 14:11:27 +05:30
..
bpf_jit_comp.c bpf: Restrict JIT predictor flush to cBPF 2026-07-01 10:33:38 +02:00
bpf_jit_comp32.c powerpc32/bpf: fix loading fsession func metadata using PPC_LI32 2026-04-08 10:02:04 +05:30
bpf_jit_comp64.c powerpc64/bpf: Fix build break in bpf_jit_emit_func_call_rel() 2026-08-03 14:11:27 +05:30
bpf_jit.h powerpc64/bpf: Implement fsession support 2026-04-03 14:10:48 +05:30
bpf_timed_may_goto.S powerpc64/bpf: Fix build break for arch_bpf_timed_may_goto 2026-08-03 14:11:27 +05:30
Makefile powerpc64/bpf: Add powerpc64 JIT support for timed may_goto 2026-06-02 11:06:42 +05:30