blackfin: switch to generic sys_execve()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Oct 2012 07:26:10 +0000 (03:26 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 15 Oct 2012 03:07:08 +0000 (23:07 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/blackfin/include/asm/unistd.h
arch/blackfin/kernel/process.c

index 5b2a0748d7d3e8b215c0d2aba4a3df3319743858..b4ec1bb3d5d461539704a88eff322b001e9260a1 100644 (file)
 #define __ARCH_WANT_SYS_NICE
 #define __ARCH_WANT_SYS_RT_SIGACTION
 #define __ARCH_WANT_SYS_RT_SIGSUSPEND
+#define __ARCH_WANT_SYS_EXECVE
 
 /*
  * "Conditional" syscalls
index 9945b94c63d4c647a69a9607cda136f174278cfc..da8df0e504ac6ef4e6529f7d128437724d6572af 100644 (file)
@@ -184,26 +184,6 @@ copy_thread(unsigned long clone_flags,
        return 0;
 }
 
-/*
- * sys_execve() executes a new program.
- */
-asmlinkage int sys_execve(const char __user *name,
-                         const char __user *const __user *argv,
-                         const char __user *const __user *envp)
-{
-       int error;
-       struct filename *filename;
-       struct pt_regs *regs = (struct pt_regs *)((&name) + 6);
-
-       filename = getname(name);
-       error = PTR_ERR(filename);
-       if (IS_ERR(filename))
-               return error;
-       error = do_execve(filename->name, argv, envp, regs);
-       putname(filename);
-       return error;
-}
-
 unsigned long get_wchan(struct task_struct *p)
 {
        unsigned long fp, pc;