Commit 817f3eee authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] compat futex fix

Fix compile errors after futex merge.
parent 8ad9ce07
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <linux/time.h> #include <linux/time.h>
#include <linux/signal.h> #include <linux/signal.h>
#include <linux/sched.h> /* for MAX_SCHEDULE_TIMEOUT */ #include <linux/sched.h> /* for MAX_SCHEDULE_TIMEOUT */
#include <linux/futex.h> /* for FUTEX_WAIT */
#include <asm/uaccess.h> #include <asm/uaccess.h>
...@@ -210,7 +211,7 @@ asmlinkage long compat_sys_sigprocmask(int how, compat_old_sigset_t *set, ...@@ -210,7 +211,7 @@ asmlinkage long compat_sys_sigprocmask(int how, compat_old_sigset_t *set,
return ret; return ret;
} }
extern long do_futex(u32 *, int, int, unsigned long); extern long do_futex(unsigned long, int, int, unsigned long);
asmlinkage long compat_sys_futex(u32 *uaddr, int op, int val, asmlinkage long compat_sys_futex(u32 *uaddr, int op, int val,
struct compat_timespec *utime) struct compat_timespec *utime)
...@@ -221,7 +222,7 @@ asmlinkage long compat_sys_futex(u32 *uaddr, int op, int val, ...@@ -221,7 +222,7 @@ asmlinkage long compat_sys_futex(u32 *uaddr, int op, int val,
if ((op == FUTEX_WAIT) && utime) { if ((op == FUTEX_WAIT) && utime) {
if (get_compat_timespec(&t, utime)) if (get_compat_timespec(&t, utime))
return -EFAULT; return -EFAULT;
timeout = timespec_to_jiffies(t) + 1; timeout = timespec_to_jiffies(&t) + 1;
} }
return do_futex((unsigned long)uaddr, op, val, timeout); return do_futex((unsigned long)uaddr, op, val, timeout);
} }
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