diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-01 10:21:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-01 10:21:43 -0400 |
commit | 08d76760832993050ad8c25e63b56773ef2ca303 (patch) | |
tree | abdcf148dfe43cd49f30f204f1dac6978107a508 /arch/x86/include/asm | |
parent | 5f56886521d6ddd3648777fae44d82382dd8c87f (diff) | |
parent | 99e621f796d7f0341a51e8cdf32b81663b10b448 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal
Pull compat cleanup from Al Viro:
"Mostly about syscall wrappers this time; there will be another pile
with patches in the same general area from various people, but I'd
rather push those after both that and vfs.git pile are in."
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal:
syscalls.h: slightly reduce the jungles of macros
get rid of union semop in sys_semctl(2) arguments
make do_mremap() static
sparc: no need to sign-extend in sync_file_range() wrapper
ppc compat wrappers for add_key(2) and request_key(2) are pointless
x86: trim sys_ia32.h
x86: sys32_kill and sys32_mprotect are pointless
get rid of compat_sys_semctl() and friends in case of ARCH_WANT_OLD_COMPAT_IPC
merge compat sys_ipc instances
consolidate compat lookup_dcookie()
convert vmsplice to COMPAT_SYSCALL_DEFINE
switch getrusage() to COMPAT_SYSCALL_DEFINE
switch epoll_pwait to COMPAT_SYSCALL_DEFINE
convert sendfile{,64} to COMPAT_SYSCALL_DEFINE
switch signalfd{,4}() to COMPAT_SYSCALL_DEFINE
make SYSCALL_DEFINE<n>-generated wrappers do asmlinkage_protect
make HAVE_SYSCALL_WRAPPERS unconditional
consolidate cond_syscall and SYSCALL_ALIAS declarations
teach SYSCALL_DEFINE<n> how to deal with long long/unsigned long long
get rid of duplicate logics in __SC_....[1-6] definitions
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/sys_ia32.h | 12 | ||||
-rw-r--r-- | arch/x86/include/asm/syscalls.h | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/unistd.h | 8 |
3 files changed, 2 insertions, 22 deletions
diff --git a/arch/x86/include/asm/sys_ia32.h b/arch/x86/include/asm/sys_ia32.h index 8459efc39686..0ef202e232d6 100644 --- a/arch/x86/include/asm/sys_ia32.h +++ b/arch/x86/include/asm/sys_ia32.h | |||
@@ -30,23 +30,14 @@ asmlinkage long sys32_fstatat(unsigned int, const char __user *, | |||
30 | struct stat64 __user *, int); | 30 | struct stat64 __user *, int); |
31 | struct mmap_arg_struct32; | 31 | struct mmap_arg_struct32; |
32 | asmlinkage long sys32_mmap(struct mmap_arg_struct32 __user *); | 32 | asmlinkage long sys32_mmap(struct mmap_arg_struct32 __user *); |
33 | asmlinkage long sys32_mprotect(unsigned long, size_t, unsigned long); | ||
34 | |||
35 | asmlinkage long sys32_alarm(unsigned int); | ||
36 | 33 | ||
37 | asmlinkage long sys32_waitpid(compat_pid_t, unsigned int __user *, int); | 34 | asmlinkage long sys32_waitpid(compat_pid_t, unsigned int __user *, int); |
38 | asmlinkage long sys32_sysfs(int, u32, u32); | ||
39 | 35 | ||
40 | asmlinkage long sys32_pread(unsigned int, char __user *, u32, u32, u32); | 36 | asmlinkage long sys32_pread(unsigned int, char __user *, u32, u32, u32); |
41 | asmlinkage long sys32_pwrite(unsigned int, const char __user *, u32, u32, u32); | 37 | asmlinkage long sys32_pwrite(unsigned int, const char __user *, u32, u32, u32); |
42 | 38 | ||
43 | asmlinkage long sys32_personality(unsigned long); | ||
44 | asmlinkage long sys32_sendfile(int, int, compat_off_t __user *, s32); | ||
45 | |||
46 | long sys32_kill(int, int); | ||
47 | long sys32_fadvise64_64(int, __u32, __u32, __u32, __u32, int); | 39 | long sys32_fadvise64_64(int, __u32, __u32, __u32, __u32, int); |
48 | long sys32_vm86_warning(void); | 40 | long sys32_vm86_warning(void); |
49 | long sys32_lookup_dcookie(u32, u32, char __user *, size_t); | ||
50 | 41 | ||
51 | asmlinkage ssize_t sys32_readahead(int, unsigned, unsigned, size_t); | 42 | asmlinkage ssize_t sys32_readahead(int, unsigned, unsigned, size_t); |
52 | asmlinkage long sys32_sync_file_range(int, unsigned, unsigned, | 43 | asmlinkage long sys32_sync_file_range(int, unsigned, unsigned, |
@@ -59,9 +50,6 @@ asmlinkage long sys32_fallocate(int, int, unsigned, | |||
59 | asmlinkage long sys32_sigreturn(void); | 50 | asmlinkage long sys32_sigreturn(void); |
60 | asmlinkage long sys32_rt_sigreturn(void); | 51 | asmlinkage long sys32_rt_sigreturn(void); |
61 | 52 | ||
62 | /* ia32/ipc32.c */ | ||
63 | asmlinkage long sys32_ipc(u32, int, int, int, compat_uptr_t, u32); | ||
64 | |||
65 | asmlinkage long sys32_fanotify_mark(int, unsigned int, u32, u32, int, | 53 | asmlinkage long sys32_fanotify_mark(int, unsigned int, u32, u32, int, |
66 | const char __user *); | 54 | const char __user *); |
67 | 55 | ||
diff --git a/arch/x86/include/asm/syscalls.h b/arch/x86/include/asm/syscalls.h index 6cf0a9cc60cd..5f87b35fd2ef 100644 --- a/arch/x86/include/asm/syscalls.h +++ b/arch/x86/include/asm/syscalls.h | |||
@@ -27,8 +27,8 @@ asmlinkage int sys_modify_ldt(int, void __user *, unsigned long); | |||
27 | long sys_rt_sigreturn(void); | 27 | long sys_rt_sigreturn(void); |
28 | 28 | ||
29 | /* kernel/tls.c */ | 29 | /* kernel/tls.c */ |
30 | asmlinkage int sys_set_thread_area(struct user_desc __user *); | 30 | asmlinkage long sys_set_thread_area(struct user_desc __user *); |
31 | asmlinkage int sys_get_thread_area(struct user_desc __user *); | 31 | asmlinkage long sys_get_thread_area(struct user_desc __user *); |
32 | 32 | ||
33 | /* X86_32 only */ | 33 | /* X86_32 only */ |
34 | #ifdef CONFIG_X86_32 | 34 | #ifdef CONFIG_X86_32 |
diff --git a/arch/x86/include/asm/unistd.h b/arch/x86/include/asm/unistd.h index 3d5df1c4447f..c2a48139c340 100644 --- a/arch/x86/include/asm/unistd.h +++ b/arch/x86/include/asm/unistd.h | |||
@@ -50,12 +50,4 @@ | |||
50 | # define __ARCH_WANT_SYS_VFORK | 50 | # define __ARCH_WANT_SYS_VFORK |
51 | # define __ARCH_WANT_SYS_CLONE | 51 | # define __ARCH_WANT_SYS_CLONE |
52 | 52 | ||
53 | /* | ||
54 | * "Conditional" syscalls | ||
55 | * | ||
56 | * What we want is __attribute__((weak,alias("sys_ni_syscall"))), | ||
57 | * but it doesn't work on all toolchains, so we just do it by hand | ||
58 | */ | ||
59 | # define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") | ||
60 | |||
61 | #endif /* _ASM_X86_UNISTD_H */ | 53 | #endif /* _ASM_X86_UNISTD_H */ |