diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-20 21:46:25 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-28 21:53:37 -0500 |
commit | d03d26e58fde2ec99478e26aab47b55755189b08 (patch) | |
tree | 025a102a36e62b21a139bcc5ca7abf2c250cd209 /fs/exec.c | |
parent | 910cdc553a324d3df56b73c84cdef20836817d52 (diff) |
make compat_do_execve() static, lose pt_regs argument
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1575,10 +1575,9 @@ int do_execve(const char *filename, | |||
1575 | } | 1575 | } |
1576 | 1576 | ||
1577 | #ifdef CONFIG_COMPAT | 1577 | #ifdef CONFIG_COMPAT |
1578 | int compat_do_execve(const char *filename, | 1578 | static int compat_do_execve(const char *filename, |
1579 | const compat_uptr_t __user *__argv, | 1579 | const compat_uptr_t __user *__argv, |
1580 | const compat_uptr_t __user *__envp, | 1580 | const compat_uptr_t __user *__envp) |
1581 | struct pt_regs *regs) | ||
1582 | { | 1581 | { |
1583 | struct user_arg_ptr argv = { | 1582 | struct user_arg_ptr argv = { |
1584 | .is_compat = true, | 1583 | .is_compat = true, |
@@ -1588,7 +1587,7 @@ int compat_do_execve(const char *filename, | |||
1588 | .is_compat = true, | 1587 | .is_compat = true, |
1589 | .ptr.compat = __envp, | 1588 | .ptr.compat = __envp, |
1590 | }; | 1589 | }; |
1591 | return do_execve_common(filename, argv, envp, regs); | 1590 | return do_execve_common(filename, argv, envp, current_pt_regs()); |
1592 | } | 1591 | } |
1593 | #endif | 1592 | #endif |
1594 | 1593 | ||
@@ -1682,8 +1681,7 @@ asmlinkage long compat_sys_execve(const char __user * filename, | |||
1682 | struct filename *path = getname(filename); | 1681 | struct filename *path = getname(filename); |
1683 | int error = PTR_ERR(path); | 1682 | int error = PTR_ERR(path); |
1684 | if (!IS_ERR(path)) { | 1683 | if (!IS_ERR(path)) { |
1685 | error = compat_do_execve(path->name, argv, envp, | 1684 | error = compat_do_execve(path->name, argv, envp); |
1686 | current_pt_regs()); | ||
1687 | putname(path); | 1685 | putname(path); |
1688 | } | 1686 | } |
1689 | return error; | 1687 | return error; |