summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/aarch64/syscall_arch.h2
-rw-r--r--arch/arm/syscall_arch.h2
-rw-r--r--arch/microblaze/syscall_arch.h2
-rw-r--r--arch/mips/syscall_arch.h3
-rw-r--r--arch/or1k/syscall_arch.h2
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)