summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2003-02-16 04:02:30 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-02-16 04:02:30 -0800
commit817f3eeecfc635d6c88f4bc38ef6619e99deaca0 (patch)
treee00d265d91c4a7efb7f8e2138adc3fb1bdaeb7c0 /kernel
parent8ad9ce0793c2890ae32e489a13d127544c3f6eee (diff)
[PATCH] compat futex fix
Fix compile errors after futex merge.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/compat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/compat.c b/kernel/compat.c
index 892b49f14f5f..7b04cf90c847 100644
--- a/kernel/compat.c
+++ b/kernel/compat.c
@@ -17,6 +17,7 @@
#include <linux/time.h>
#include <linux/signal.h>
#include <linux/sched.h> /* for MAX_SCHEDULE_TIMEOUT */
+#include <linux/futex.h> /* for FUTEX_WAIT */
#include <asm/uaccess.h>
@@ -210,7 +211,7 @@ asmlinkage long compat_sys_sigprocmask(int how, compat_old_sigset_t *set,
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,
struct compat_timespec *utime)
@@ -221,7 +222,7 @@ asmlinkage long compat_sys_futex(u32 *uaddr, int op, int val,
if ((op == FUTEX_WAIT) && utime) {
if (get_compat_timespec(&t, utime))
return -EFAULT;
- timeout = timespec_to_jiffies(t) + 1;
+ timeout = timespec_to_jiffies(&t) + 1;
}
return do_futex((unsigned long)uaddr, op, val, timeout);
}