diff options
-rw-r--r-- | arch/hexagon/include/asm/syscall.h | 3 | ||||
-rw-r--r-- | arch/tile/include/asm/syscalls.h | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/syscalls.h | 3 | ||||
-rw-r--r-- | arch/xtensa/include/asm/syscall.h | 1 | ||||
-rw-r--r-- | include/asm-generic/syscalls.h | 7 | ||||
-rw-r--r-- | include/linux/syscalls.h | 3 |
6 files changed, 3 insertions, 18 deletions
diff --git a/arch/hexagon/include/asm/syscall.h b/arch/hexagon/include/asm/syscall.h index fb0e9d48faa6..ec2ce6792cd6 100644 --- a/arch/hexagon/include/asm/syscall.h +++ b/arch/hexagon/include/asm/syscall.h | |||
@@ -25,12 +25,9 @@ typedef long (*syscall_fn)(unsigned long, unsigned long, | |||
25 | unsigned long, unsigned long, | 25 | unsigned long, unsigned long, |
26 | unsigned long, unsigned long); | 26 | unsigned long, unsigned long); |
27 | 27 | ||
28 | asmlinkage int sys_execve(char __user *ufilename, char __user * __user *argv, | ||
29 | char __user * __user *envp); | ||
30 | asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, | 28 | asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, |
31 | unsigned long parent_tidp, unsigned long child_tidp); | 29 | unsigned long parent_tidp, unsigned long child_tidp); |
32 | 30 | ||
33 | #define sys_execve sys_execve | ||
34 | #define sys_clone sys_clone | 31 | #define sys_clone sys_clone |
35 | 32 | ||
36 | #include <asm-generic/syscalls.h> | 33 | #include <asm-generic/syscalls.h> |
diff --git a/arch/tile/include/asm/syscalls.h b/arch/tile/include/asm/syscalls.h index 369696d63e7b..394c76f2dc76 100644 --- a/arch/tile/include/asm/syscalls.h +++ b/arch/tile/include/asm/syscalls.h | |||
@@ -65,13 +65,9 @@ long sys_ftruncate64(unsigned int fd, loff_t length); | |||
65 | /* Provide versions of standard syscalls that use current_pt_regs(). */ | 65 | /* Provide versions of standard syscalls that use current_pt_regs(). */ |
66 | long sys_clone(unsigned long clone_flags, unsigned long newsp, | 66 | long sys_clone(unsigned long clone_flags, unsigned long newsp, |
67 | void __user *parent_tid, void __user *child_tid); | 67 | void __user *parent_tid, void __user *child_tid); |
68 | long sys_execve(const char __user *filename, | ||
69 | const char __user *const __user *argv, | ||
70 | const char __user *const __user *envp); | ||
71 | long sys_rt_sigreturn(void); | 68 | long sys_rt_sigreturn(void); |
72 | long sys_sigaltstack(const stack_t __user *, stack_t __user *); | 69 | long sys_sigaltstack(const stack_t __user *, stack_t __user *); |
73 | #define sys_clone sys_clone | 70 | #define sys_clone sys_clone |
74 | #define sys_execve sys_execve | ||
75 | #define sys_rt_sigreturn sys_rt_sigreturn | 71 | #define sys_rt_sigreturn sys_rt_sigreturn |
76 | #define sys_sigaltstack sys_sigaltstack | 72 | #define sys_sigaltstack sys_sigaltstack |
77 | 73 | ||
diff --git a/arch/x86/include/asm/syscalls.h b/arch/x86/include/asm/syscalls.h index 2be0b880417e..9e5aef3a2598 100644 --- a/arch/x86/include/asm/syscalls.h +++ b/arch/x86/include/asm/syscalls.h | |||
@@ -23,9 +23,6 @@ long sys_iopl(unsigned int, struct pt_regs *); | |||
23 | /* kernel/process.c */ | 23 | /* kernel/process.c */ |
24 | int sys_fork(struct pt_regs *); | 24 | int sys_fork(struct pt_regs *); |
25 | int sys_vfork(struct pt_regs *); | 25 | int sys_vfork(struct pt_regs *); |
26 | long sys_execve(const char __user *, | ||
27 | const char __user *const __user *, | ||
28 | const char __user *const __user *); | ||
29 | long sys_clone(unsigned long, unsigned long, void __user *, | 26 | long sys_clone(unsigned long, unsigned long, void __user *, |
30 | void __user *, struct pt_regs *); | 27 | void __user *, struct pt_regs *); |
31 | 28 | ||
diff --git a/arch/xtensa/include/asm/syscall.h b/arch/xtensa/include/asm/syscall.h index 124aeee0d381..4e27d76c9612 100644 --- a/arch/xtensa/include/asm/syscall.h +++ b/arch/xtensa/include/asm/syscall.h | |||
@@ -10,7 +10,6 @@ | |||
10 | 10 | ||
11 | struct pt_regs; | 11 | struct pt_regs; |
12 | struct sigaction; | 12 | struct sigaction; |
13 | asmlinkage long sys_execve(char*, char**, char**, struct pt_regs*); | ||
14 | asmlinkage long xtensa_clone(unsigned long, unsigned long, struct pt_regs*); | 13 | asmlinkage long xtensa_clone(unsigned long, unsigned long, struct pt_regs*); |
15 | asmlinkage long xtensa_ptrace(long, long, long, long); | 14 | asmlinkage long xtensa_ptrace(long, long, long, long); |
16 | asmlinkage long xtensa_sigreturn(struct pt_regs*); | 15 | asmlinkage long xtensa_sigreturn(struct pt_regs*); |
diff --git a/include/asm-generic/syscalls.h b/include/asm-generic/syscalls.h index 7e4fdb649951..77960333b1a1 100644 --- a/include/asm-generic/syscalls.h +++ b/include/asm-generic/syscalls.h | |||
@@ -21,13 +21,6 @@ asmlinkage long sys_fork(void); | |||
21 | asmlinkage long sys_vfork(void); | 21 | asmlinkage long sys_vfork(void); |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | #ifndef sys_execve | ||
25 | asmlinkage long sys_execve(const char __user *filename, | ||
26 | const char __user *const __user *argv, | ||
27 | const char __user *const __user *envp, | ||
28 | struct pt_regs *regs); | ||
29 | #endif | ||
30 | |||
31 | #ifndef sys_mmap2 | 24 | #ifndef sys_mmap2 |
32 | asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, | 25 | asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, |
33 | unsigned long prot, unsigned long flags, | 26 | unsigned long prot, unsigned long flags, |
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 727f0cd73921..2779009ceaa3 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -837,6 +837,9 @@ int kernel_execve(const char *filename, const char *const argv[], const char *co | |||
837 | current_pt_regs()) | 837 | current_pt_regs()) |
838 | #endif | 838 | #endif |
839 | 839 | ||
840 | asmlinkage long sys_execve(const char __user *filename, | ||
841 | const char __user *const __user *argv, | ||
842 | const char __user *const __user *envp); | ||
840 | 843 | ||
841 | asmlinkage long sys_perf_event_open( | 844 | asmlinkage long sys_perf_event_open( |
842 | struct perf_event_attr __user *attr_uptr, | 845 | struct perf_event_attr __user *attr_uptr, |