From dbed392410e333fde86c14ea17a46d1ad9c760f1 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Mon, 24 Feb 2014 22:49:42 +0100 Subject: fixup general __syscall breakage introduced in x32 port the reordering of headers caused some risc archs to not see the __syscall declaration anymore. this caused build errors on mips with any compiler, and on arm and microblaze with clang. we now declare it locally just like the powerpc port does. --- arch/arm/syscall_arch.h | 2 ++ arch/microblaze/syscall_arch.h | 2 ++ arch/mips/syscall_arch.h | 2 ++ 3 files changed, 6 insertions(+) (limited to 'arch') diff --git a/arch/arm/syscall_arch.h b/arch/arm/syscall_arch.h index 1d87fae1..e10748a4 100644 --- a/arch/arm/syscall_arch.h +++ b/arch/arm/syscall_arch.h @@ -3,6 +3,8 @@ ((union { long long ll; long l[2]; }){ .ll = x }).l[1] #define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x)) +long (__syscall)(long, ...); + #ifndef __clang__ #define __asm_syscall(...) do { \ diff --git a/arch/microblaze/syscall_arch.h b/arch/microblaze/syscall_arch.h index 231bed42..70217ffa 100644 --- a/arch/microblaze/syscall_arch.h +++ b/arch/microblaze/syscall_arch.h @@ -3,6 +3,8 @@ ((union { long long ll; long l[2]; }){ .ll = x }).l[1] #define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x)) +long (__syscall)(long, ...); + #ifndef __clang__ static __inline long __syscall0(long n) diff --git a/arch/mips/syscall_arch.h b/arch/mips/syscall_arch.h index 43404c9e..c52976eb 100644 --- a/arch/mips/syscall_arch.h +++ b/arch/mips/syscall_arch.h @@ -3,6 +3,8 @@ ((union { long long ll; long l[2]; }){ .ll = x }).l[1] #define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x)) +long (__syscall)(long, ...); + #ifndef __clang__ #define __asm_syscall(...) do { \ -- cgit v1.2.1