Commit 90caf58d authored by Al Viro's avatar Al Viro

convert futex compat syscalls to COMPAT_SYSCALL_DEFINE

ppc is stepping into a nasal daemon territory a bit...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent f482e1b4
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <linux/nsproxy.h> #include <linux/nsproxy.h>
#include <linux/futex.h> #include <linux/futex.h>
#include <linux/ptrace.h> #include <linux/ptrace.h>
#include <linux/syscalls.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
...@@ -116,9 +117,9 @@ void compat_exit_robust_list(struct task_struct *curr) ...@@ -116,9 +117,9 @@ void compat_exit_robust_list(struct task_struct *curr)
} }
} }
asmlinkage long COMPAT_SYSCALL_DEFINE2(set_robust_list,
compat_sys_set_robust_list(struct compat_robust_list_head __user *head, struct compat_robust_list_head __user *, head,
compat_size_t len) compat_size_t, len)
{ {
if (!futex_cmpxchg_enabled) if (!futex_cmpxchg_enabled)
return -ENOSYS; return -ENOSYS;
...@@ -131,9 +132,9 @@ compat_sys_set_robust_list(struct compat_robust_list_head __user *head, ...@@ -131,9 +132,9 @@ compat_sys_set_robust_list(struct compat_robust_list_head __user *head,
return 0; return 0;
} }
asmlinkage long COMPAT_SYSCALL_DEFINE3(get_robust_list, int, pid,
compat_sys_get_robust_list(int pid, compat_uptr_t __user *head_ptr, compat_uptr_t __user *, head_ptr,
compat_size_t __user *len_ptr) compat_size_t __user *, len_ptr)
{ {
struct compat_robust_list_head __user *head; struct compat_robust_list_head __user *head;
unsigned long ret; unsigned long ret;
...@@ -172,9 +173,9 @@ compat_sys_get_robust_list(int pid, compat_uptr_t __user *head_ptr, ...@@ -172,9 +173,9 @@ compat_sys_get_robust_list(int pid, compat_uptr_t __user *head_ptr,
return ret; return ret;
} }
asmlinkage long compat_sys_futex(u32 __user *uaddr, int op, u32 val, COMPAT_SYSCALL_DEFINE6(futex, u32 __user *, uaddr, int, op, u32, val,
struct compat_timespec __user *utime, u32 __user *uaddr2, struct compat_timespec __user *, utime, u32 __user *, uaddr2,
u32 val3) u32, val3)
{ {
struct timespec ts; struct timespec ts;
ktime_t t, *tp = NULL; ktime_t t, *tp = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment