hexagon: switch to generic sys_execve()
Al Viro [Fri, 19 Oct 2012 02:48:18 +0000 (22:48 -0400)]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

arch/hexagon/include/asm/unistd.h
arch/hexagon/kernel/syscall.c

index c0d5565..acbd5ad 100644 (file)
@@ -27,5 +27,6 @@
  */
 
 #define sys_mmap2 sys_mmap_pgoff
+#define __ARCH_WANT_SYS_EXECVE
 
 #include <asm-generic/unistd.h>
index 120f1a5..e28f4e5 100644 (file)
  * 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)
 {