summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/linkage.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/linkage.h')
-rw-r--r--arch/powerpc/include/asm/linkage.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/linkage.h b/arch/powerpc/include/asm/linkage.h
index b36f650a13ff..b71b9582e754 100644
--- a/arch/powerpc/include/asm/linkage.h
+++ b/arch/powerpc/include/asm/linkage.h
@@ -1,7 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_POWERPC_LINKAGE_H
#define _ASM_POWERPC_LINKAGE_H
-#ifdef CONFIG_PPC64
+#include <asm/types.h>
+
+#ifdef CONFIG_PPC64_ELF_ABI_V1
#define cond_syscall(x) \
asm ("\t.weak " #x "\n\t.set " #x ", sys_ni_syscall\n" \
"\t.weak ." #x "\n\t.set ." #x ", .sys_ni_syscall\n")