diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2014-03-04 04:53:50 -0500 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2014-03-06 10:30:43 -0500 |
commit | 625b1d7e812d55df8d42253a134002c006de7468 (patch) | |
tree | 12a632957dac90ba9fe4da7c854a3c967b84d961 /fs/exec.c | |
parent | 875ec3da4c50571906dcd23952f1dfcdd92ae3f1 (diff) |
fs/compat: convert to COMPAT_SYSCALL_DEFINE
Convert all compat system call functions where all parameter types
have a size of four or less than four bytes, or are pointer types
to COMPAT_SYSCALL_DEFINE.
The implicit casts within COMPAT_SYSCALL_DEFINE will perform proper
zero and sign extension to 64 bit of all parameters if needed.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1619,9 +1619,9 @@ SYSCALL_DEFINE3(execve, | |||
1619 | return do_execve(getname(filename), argv, envp); | 1619 | return do_execve(getname(filename), argv, envp); |
1620 | } | 1620 | } |
1621 | #ifdef CONFIG_COMPAT | 1621 | #ifdef CONFIG_COMPAT |
1622 | asmlinkage long compat_sys_execve(const char __user * filename, | 1622 | COMPAT_SYSCALL_DEFINE3(execve, const char __user *, filename, |
1623 | const compat_uptr_t __user * argv, | 1623 | const compat_uptr_t __user *, argv, |
1624 | const compat_uptr_t __user * envp) | 1624 | const compat_uptr_t __user *, envp) |
1625 | { | 1625 | { |
1626 | return compat_do_execve(getname(filename), argv, envp); | 1626 | return compat_do_execve(getname(filename), argv, envp); |
1627 | } | 1627 | } |