summaryrefslogtreecommitdiffstats
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2014-03-03 16:11:13 +0100
committerHeiko Carstens <heiko.carstens@de.ibm.com>2014-03-06 15:35:10 +0100
commit62a6fa97684ed4c124564ea92500ecd513d60611 (patch)
treeee38d37c96e0920eb4f23789b789a112f917c839 /kernel/ptrace.c
parent378a10f3ae2e8a67ecc8f548c8e5ff25881bd88a (diff)
downloadlinux-62a6fa97684ed4c124564ea92500ecd513d60611.tar.gz
linux-62a6fa97684ed4c124564ea92500ecd513d60611.tar.bz2
linux-62a6fa97684ed4c124564ea92500ecd513d60611.zip
kernel/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 'kernel/ptrace.c')
-rw-r--r--kernel/ptrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 1f4bcb3cc21c..adf98622cb32 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -1180,8 +1180,8 @@ int compat_ptrace_request(struct task_struct *child, compat_long_t request,
return ret;
}
-asmlinkage long compat_sys_ptrace(compat_long_t request, compat_long_t pid,
- compat_long_t addr, compat_long_t data)
+COMPAT_SYSCALL_DEFINE4(ptrace, compat_long_t, request, compat_long_t, pid,
+ compat_long_t, addr, compat_long_t, data)
{
struct task_struct *child;
long ret;