diff options
-rw-r--r-- | arch/Kconfig | 3 | ||||
-rw-r--r-- | arch/alpha/Kconfig | 1 | ||||
-rw-r--r-- | arch/mips/Kconfig | 1 | ||||
-rw-r--r-- | arch/powerpc/Kconfig | 1 | ||||
-rw-r--r-- | arch/s390/Kconfig | 1 | ||||
-rw-r--r-- | arch/sparc/Kconfig | 1 | ||||
-rw-r--r-- | arch/tile/Kconfig | 1 | ||||
-rw-r--r-- | include/linux/compat.h | 9 | ||||
-rw-r--r-- | include/linux/syscalls.h | 10 | ||||
-rw-r--r-- | ipc/sem.c | 2 |
10 files changed, 0 insertions, 30 deletions
diff --git a/arch/Kconfig b/arch/Kconfig index 5a1779c93940..892d6176fcf3 100644 --- a/arch/Kconfig +++ b/arch/Kconfig | |||
@@ -157,9 +157,6 @@ config ARCH_USE_BUILTIN_BSWAP | |||
157 | instructions should set this. And it shouldn't hurt to set it | 157 | instructions should set this. And it shouldn't hurt to set it |
158 | on architectures that don't have such instructions. | 158 | on architectures that don't have such instructions. |
159 | 159 | ||
160 | config HAVE_SYSCALL_WRAPPERS | ||
161 | bool | ||
162 | |||
163 | config KRETPROBES | 160 | config KRETPROBES |
164 | def_bool y | 161 | def_bool y |
165 | depends on KPROBES && HAVE_KRETPROBES | 162 | depends on KPROBES && HAVE_KRETPROBES |
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig index 5833aa441481..5469f7b444ab 100644 --- a/arch/alpha/Kconfig +++ b/arch/alpha/Kconfig | |||
@@ -4,7 +4,6 @@ config ALPHA | |||
4 | select HAVE_AOUT | 4 | select HAVE_AOUT |
5 | select HAVE_IDE | 5 | select HAVE_IDE |
6 | select HAVE_OPROFILE | 6 | select HAVE_OPROFILE |
7 | select HAVE_SYSCALL_WRAPPERS | ||
8 | select HAVE_PCSPKR_PLATFORM | 7 | select HAVE_PCSPKR_PLATFORM |
9 | select HAVE_PERF_EVENTS | 8 | select HAVE_PERF_EVENTS |
10 | select HAVE_DMA_ATTRS | 9 | select HAVE_DMA_ATTRS |
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index ae9c716c46bb..32eb3d67bbef 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -1737,7 +1737,6 @@ config 32BIT | |||
1737 | config 64BIT | 1737 | config 64BIT |
1738 | bool "64-bit kernel" | 1738 | bool "64-bit kernel" |
1739 | depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL | 1739 | depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL |
1740 | select HAVE_SYSCALL_WRAPPERS | ||
1741 | help | 1740 | help |
1742 | Select this option if you want to build a 64-bit kernel. | 1741 | Select this option if you want to build a 64-bit kernel. |
1743 | 1742 | ||
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index b89d7eb730a2..f460e32fe2a0 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -113,7 +113,6 @@ config PPC | |||
113 | select USE_GENERIC_SMP_HELPERS if SMP | 113 | select USE_GENERIC_SMP_HELPERS if SMP |
114 | select HAVE_OPROFILE | 114 | select HAVE_OPROFILE |
115 | select HAVE_DEBUG_KMEMLEAK | 115 | select HAVE_DEBUG_KMEMLEAK |
116 | select HAVE_SYSCALL_WRAPPERS if PPC64 | ||
117 | select GENERIC_ATOMIC64 if PPC32 | 116 | select GENERIC_ATOMIC64 if PPC32 |
118 | select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE | 117 | select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE |
119 | select HAVE_PERF_EVENTS | 118 | select HAVE_PERF_EVENTS |
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 4b505370a1d5..f6cc1528df89 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
@@ -131,7 +131,6 @@ config S390 | |||
131 | select HAVE_PERF_EVENTS | 131 | select HAVE_PERF_EVENTS |
132 | select HAVE_REGS_AND_STACK_ACCESS_API | 132 | select HAVE_REGS_AND_STACK_ACCESS_API |
133 | select HAVE_SYSCALL_TRACEPOINTS | 133 | select HAVE_SYSCALL_TRACEPOINTS |
134 | select HAVE_SYSCALL_WRAPPERS | ||
135 | select HAVE_UID16 if 32BIT | 134 | select HAVE_UID16 if 32BIT |
136 | select HAVE_VIRT_CPU_ACCOUNTING | 135 | select HAVE_VIRT_CPU_ACCOUNTING |
137 | select HAVE_VIRT_TO_BUS | 136 | select HAVE_VIRT_TO_BUS |
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 289127d5241c..67388cdb18c1 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
@@ -62,7 +62,6 @@ config SPARC64 | |||
62 | select HAVE_RCU_TABLE_FREE if SMP | 62 | select HAVE_RCU_TABLE_FREE if SMP |
63 | select HAVE_MEMBLOCK | 63 | select HAVE_MEMBLOCK |
64 | select HAVE_MEMBLOCK_NODE_MAP | 64 | select HAVE_MEMBLOCK_NODE_MAP |
65 | select HAVE_SYSCALL_WRAPPERS | ||
66 | select HAVE_ARCH_TRANSPARENT_HUGEPAGE | 65 | select HAVE_ARCH_TRANSPARENT_HUGEPAGE |
67 | select HAVE_DYNAMIC_FTRACE | 66 | select HAVE_DYNAMIC_FTRACE |
68 | select HAVE_FTRACE_MCOUNT_RECORD | 67 | select HAVE_FTRACE_MCOUNT_RECORD |
diff --git a/arch/tile/Kconfig b/arch/tile/Kconfig index ff496ab1e794..95bd2ef6c943 100644 --- a/arch/tile/Kconfig +++ b/arch/tile/Kconfig | |||
@@ -16,7 +16,6 @@ config TILE | |||
16 | select GENERIC_PENDING_IRQ if SMP | 16 | select GENERIC_PENDING_IRQ if SMP |
17 | select GENERIC_IRQ_SHOW | 17 | select GENERIC_IRQ_SHOW |
18 | select HAVE_DEBUG_BUGVERBOSE | 18 | select HAVE_DEBUG_BUGVERBOSE |
19 | select HAVE_SYSCALL_WRAPPERS if TILEGX | ||
20 | select HAVE_VIRT_TO_BUS | 19 | select HAVE_VIRT_TO_BUS |
21 | select SYS_HYPERVISOR | 20 | select SYS_HYPERVISOR |
22 | select ARCH_HAVE_NMI_SAFE_CMPXCHG | 21 | select ARCH_HAVE_NMI_SAFE_CMPXCHG |
diff --git a/include/linux/compat.h b/include/linux/compat.h index 8c1dfc8d830d..110132527e4c 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h | |||
@@ -40,8 +40,6 @@ | |||
40 | #define COMPAT_SYSCALL_DEFINE6(name, ...) \ | 40 | #define COMPAT_SYSCALL_DEFINE6(name, ...) \ |
41 | COMPAT_SYSCALL_DEFINEx(6, _##name, __VA_ARGS__) | 41 | COMPAT_SYSCALL_DEFINEx(6, _##name, __VA_ARGS__) |
42 | 42 | ||
43 | #ifdef CONFIG_HAVE_SYSCALL_WRAPPERS | ||
44 | |||
45 | #define COMPAT_SYSCALL_DEFINEx(x, name, ...) \ | 43 | #define COMPAT_SYSCALL_DEFINEx(x, name, ...) \ |
46 | asmlinkage long compat_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\ | 44 | asmlinkage long compat_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\ |
47 | static inline long C_SYSC##name(__MAP(x,__SC_DECL,__VA_ARGS__));\ | 45 | static inline long C_SYSC##name(__MAP(x,__SC_DECL,__VA_ARGS__));\ |
@@ -52,13 +50,6 @@ | |||
52 | SYSCALL_ALIAS(compat_sys##name, compat_SyS##name); \ | 50 | SYSCALL_ALIAS(compat_sys##name, compat_SyS##name); \ |
53 | static inline long C_SYSC##name(__MAP(x,__SC_DECL,__VA_ARGS__)) | 51 | static inline long C_SYSC##name(__MAP(x,__SC_DECL,__VA_ARGS__)) |
54 | 52 | ||
55 | #else /* CONFIG_HAVE_SYSCALL_WRAPPERS */ | ||
56 | |||
57 | #define COMPAT_SYSCALL_DEFINEx(x, name, ...) \ | ||
58 | asmlinkage long compat_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) | ||
59 | |||
60 | #endif /* CONFIG_HAVE_SYSCALL_WRAPPERS */ | ||
61 | |||
62 | #ifndef compat_user_stack_pointer | 53 | #ifndef compat_user_stack_pointer |
63 | #define compat_user_stack_pointer() current_user_stack_pointer() | 54 | #define compat_user_stack_pointer() current_user_stack_pointer() |
64 | #endif | 55 | #endif |
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 87584373305d..3b6fc13cb46a 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -198,8 +198,6 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
198 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) | 198 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) |
199 | #endif | 199 | #endif |
200 | 200 | ||
201 | #ifdef CONFIG_HAVE_SYSCALL_WRAPPERS | ||
202 | |||
203 | #define SYSCALL_DEFINE(name) static inline long SYSC_##name | 201 | #define SYSCALL_DEFINE(name) static inline long SYSC_##name |
204 | 202 | ||
205 | #define __SYSCALL_DEFINEx(x, name, ...) \ | 203 | #define __SYSCALL_DEFINEx(x, name, ...) \ |
@@ -213,14 +211,6 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
213 | SYSCALL_ALIAS(sys##name, SyS##name); \ | 211 | SYSCALL_ALIAS(sys##name, SyS##name); \ |
214 | static inline long SYSC##name(__MAP(x,__SC_DECL,__VA_ARGS__)) | 212 | static inline long SYSC##name(__MAP(x,__SC_DECL,__VA_ARGS__)) |
215 | 213 | ||
216 | #else /* CONFIG_HAVE_SYSCALL_WRAPPERS */ | ||
217 | |||
218 | #define SYSCALL_DEFINE(name) asmlinkage long sys_##name | ||
219 | #define __SYSCALL_DEFINEx(x, name, ...) \ | ||
220 | asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) | ||
221 | |||
222 | #endif /* CONFIG_HAVE_SYSCALL_WRAPPERS */ | ||
223 | |||
224 | asmlinkage long sys_time(time_t __user *tloc); | 214 | asmlinkage long sys_time(time_t __user *tloc); |
225 | asmlinkage long sys_stime(time_t __user *tptr); | 215 | asmlinkage long sys_stime(time_t __user *tptr); |
226 | asmlinkage long sys_gettimeofday(struct timeval __user *tv, | 216 | asmlinkage long sys_gettimeofday(struct timeval __user *tv, |
@@ -1156,13 +1156,11 @@ SYSCALL_DEFINE(semctl)(int semid, int semnum, int cmd, union semun arg) | |||
1156 | return -EINVAL; | 1156 | return -EINVAL; |
1157 | } | 1157 | } |
1158 | } | 1158 | } |
1159 | #ifdef CONFIG_HAVE_SYSCALL_WRAPPERS | ||
1160 | asmlinkage long SyS_semctl(int semid, int semnum, int cmd, union semun arg) | 1159 | asmlinkage long SyS_semctl(int semid, int semnum, int cmd, union semun arg) |
1161 | { | 1160 | { |
1162 | return SYSC_semctl((int) semid, (int) semnum, (int) cmd, arg); | 1161 | return SYSC_semctl((int) semid, (int) semnum, (int) cmd, arg); |
1163 | } | 1162 | } |
1164 | SYSCALL_ALIAS(sys_semctl, SyS_semctl); | 1163 | SYSCALL_ALIAS(sys_semctl, SyS_semctl); |
1165 | #endif | ||
1166 | 1164 | ||
1167 | /* If the task doesn't already have a undo_list, then allocate one | 1165 | /* If the task doesn't already have a undo_list, then allocate one |
1168 | * here. We guarantee there is only one thread using this undo list, | 1166 | * here. We guarantee there is only one thread using this undo list, |