]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests/bpf: Define SYS_PREFIX for powerpc
authorSaket Kumar Bhaskar <skb99@linux.ibm.com>
Fri, 31 Jan 2025 07:05:21 +0000 (12:35 +0530)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 12 Feb 2025 00:41:25 +0000 (16:41 -0800)
Since commit 7e92e01b7245 ("powerpc: Provide syscall wrapper")
landed in v6.1, syscall wrapper is enabled on powerpc. Commit
94746890202c ("powerpc: Don't add __powerpc_ prefix to syscall
entry points") , that drops the prefix to syscall entry points,
also landed in the same release. So, add the missing empty
SYS_PREFIX prefix definition for powerpc, to fix some fentry
and kprobe selftests.

Signed-off-by: Saket Kumar Bhaskar <skb99@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/bpf/7192d6aa9501115dc242435970df82b3d190f257.1738302337.git.skb99@linux.ibm.com
tools/testing/selftests/bpf/progs/bpf_misc.h

index f45f4352feebdaa1900448e20a1b746d76c09921..02c9f7964e563b2a6c508fec9d9edf7f8fbc746c 100644 (file)
 #elif defined(__TARGET_ARCH_riscv)
 #define SYSCALL_WRAPPER 1
 #define SYS_PREFIX "__riscv_"
+#elif defined(__TARGET_ARCH_powerpc)
+#define SYSCALL_WRAPPER 1
+#define SYS_PREFIX ""
 #else
 #define SYSCALL_WRAPPER 0
 #define SYS_PREFIX "__se_"