From 18f75b80fd67fd7348fcfb807216f654597b592f Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Thu, 30 Apr 2015 18:50:04 +0100 Subject: [PATCH] fix __syscall declaration with wrong visibility in syscall_arch.h remove __syscall declaration where it is not needed (aarch64, arm, microblaze, or1k) and add the hidden attribute where it is (mips). --- arch/aarch64/syscall_arch.h | 2 -- arch/arm/syscall_arch.h | 2 -- arch/microblaze/syscall_arch.h | 2 -- arch/mips/syscall_arch.h | 3 +++ arch/or1k/syscall_arch.h | 2 -- 5 files changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/aarch64/syscall_arch.h b/arch/aarch64/syscall_arch.h index ec7cc785..a92bff97 100644 --- a/arch/aarch64/syscall_arch.h +++ b/arch/aarch64/syscall_arch.h @@ -3,8 +3,6 @@ ((union { long long ll; long l[2]; }){ .ll = x }).l[1] #define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x)) -long (__syscall)(long, ...); - #define __asm_syscall(...) do { \ __asm__ __volatile__ ( "svc 0" \ : "=r"(x0) : __VA_ARGS__ : "memory", "cc"); \ diff --git a/arch/arm/syscall_arch.h b/arch/arm/syscall_arch.h index c1c94666..199ad2a6 100644 --- a/arch/arm/syscall_arch.h +++ b/arch/arm/syscall_arch.h @@ -3,8 +3,6 @@ ((union { long long ll; long l[2]; }){ .ll = x }).l[1] #define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x)) -long (__syscall)(long, ...); - #define __asm_syscall(...) do { \ __asm__ __volatile__ ( "svc 0" \ : "=r"(r0) : __VA_ARGS__ : "memory"); \ diff --git a/arch/microblaze/syscall_arch.h b/arch/microblaze/syscall_arch.h index 79f98340..8e2de7ea 100644 --- a/arch/microblaze/syscall_arch.h +++ b/arch/microblaze/syscall_arch.h @@ -3,8 +3,6 @@ ((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 69b8154f..1b1179c4 100644 --- a/arch/mips/syscall_arch.h +++ b/arch/mips/syscall_arch.h @@ -3,6 +3,9 @@ ((union { long long ll; long l[2]; }){ .ll = x }).l[1] #define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x)) +#ifdef SHARED +__attribute__((visibility("hidden"))) +#endif long (__syscall)(long, ...); #define SYSCALL_RLIM_INFINITY (-1UL/2) diff --git a/arch/or1k/syscall_arch.h b/arch/or1k/syscall_arch.h index 3e4650cc..caff7ece 100644 --- a/arch/or1k/syscall_arch.h +++ b/arch/or1k/syscall_arch.h @@ -5,8 +5,6 @@ #define SYSCALL_MMAP2_UNIT 8192ULL -long (__syscall)(long, ...); - #ifndef __clang__ static __inline long __syscall0(long n)