summaryrefslogtreecommitdiffstats
path: root/arch/hexagon
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-10-19 04:48:18 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-10-24 04:05:43 +0200
commit27aedbd52fb78bbead55c81a8dd906afd405c3fc (patch)
treef6ba706c7c3aa554448126ed422cd3d75a5fa990 /arch/hexagon
parenthexagon: kernel_thread()/kernel_execve() conversion (diff)
downloadlinux-27aedbd52fb78bbead55c81a8dd906afd405c3fc.tar.xz
linux-27aedbd52fb78bbead55c81a8dd906afd405c3fc.zip
hexagon: switch to generic sys_execve()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/hexagon')
-rw-r--r--arch/hexagon/include/asm/unistd.h1
-rw-r--r--arch/hexagon/kernel/syscall.c19
2 files changed, 1 insertions, 19 deletions
diff --git a/arch/hexagon/include/asm/unistd.h b/arch/hexagon/include/asm/unistd.h
index c0d5565030ae..acbd5adc9814 100644
--- a/arch/hexagon/include/asm/unistd.h
+++ b/arch/hexagon/include/asm/unistd.h
@@ -27,5 +27,6 @@
*/
#define sys_mmap2 sys_mmap_pgoff
+#define __ARCH_WANT_SYS_EXECVE
#include <asm-generic/unistd.h>
diff --git a/arch/hexagon/kernel/syscall.c b/arch/hexagon/kernel/syscall.c
index 120f1a5e9f3d..e28f4e5a6a7a 100644
--- a/arch/hexagon/kernel/syscall.c
+++ b/arch/hexagon/kernel/syscall.c
@@ -35,25 +35,6 @@
* See signal.c for signal-related system call wrappers.
*/
-asmlinkage int sys_execve(char __user *ufilename,
- const char __user *const __user *argv,
- const char __user *const __user *envp)
-{
- struct pt_regs *pregs = current_pt_regs();
- struct filename *filename;
- int retval;
-
- filename = getname(ufilename);
- retval = PTR_ERR(filename);
- if (IS_ERR(filename))
- return retval;
-
- retval = do_execve(filename->name, argv, envp, pregs);
- putname(filename);
-
- return retval;
-}
-
asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
unsigned long parent_tidp, unsigned long child_tidp)
{