Skip to content

Commit 756144f

Browse files
author
Al Viro
committed
alpha: switch to generic sys_execve()
get rid of sys_execve() wrapper, while we are at it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent a63c97a commit 756144f

3 files changed

Lines changed: 1 addition & 30 deletions

File tree

arch/alpha/include/asm/unistd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@
481481
#define __ARCH_WANT_SYS_OLDUMOUNT
482482
#define __ARCH_WANT_SYS_SIGPENDING
483483
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
484+
#define __ARCH_WANT_SYS_EXECVE
484485

485486
/* "Conditional" syscalls. What we want is
486487

arch/alpha/kernel/entry.S

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -744,15 +744,6 @@ sys_rt_sigreturn:
744744
br ret_from_sys_call
745745
.end sys_rt_sigreturn
746746

747-
.align 4
748-
.globl sys_execve
749-
.ent sys_execve
750-
sys_execve:
751-
.prologue 0
752-
mov $sp, $19
753-
jmp $31, do_sys_execve
754-
.end sys_execve
755-
756747
.align 4
757748
.globl alpha_ni_syscall
758749
.ent alpha_ni_syscall

arch/alpha/kernel/process.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -381,27 +381,6 @@ dump_elf_task_fp(elf_fpreg_t *dest, struct task_struct *task)
381381
}
382382
EXPORT_SYMBOL(dump_elf_task_fp);
383383

384-
/*
385-
* sys_execve() executes a new program.
386-
*/
387-
asmlinkage int
388-
do_sys_execve(const char __user *ufilename,
389-
const char __user *const __user *argv,
390-
const char __user *const __user *envp, struct pt_regs *regs)
391-
{
392-
int error;
393-
char *filename;
394-
395-
filename = getname(ufilename);
396-
error = PTR_ERR(filename);
397-
if (IS_ERR(filename))
398-
goto out;
399-
error = do_execve(filename, argv, envp, regs);
400-
putname(filename);
401-
out:
402-
return error;
403-
}
404-
405384
/*
406385
* Return saved PC of a blocked thread. This assumes the frame
407386
* pointer is the 6th saved long on the kernel stack and that the

0 commit comments

Comments
 (0)