Jakub Jelinek | 4732efb | 2005-09-06 15:16:25 -0700 | [diff] [blame] | 1 | #ifndef _ASM_FUTEX_H |
| 2 | #define _ASM_FUTEX_H |
| 3 | |
| 4 | #ifdef __KERNEL__ |
| 5 | |
| 6 | #include <linux/futex.h> |
| 7 | #include <asm/errno.h> |
| 8 | #include <asm/uaccess.h> |
| 9 | |
David Howells | 5c40f7f | 2006-01-06 00:11:43 -0800 | [diff] [blame] | 10 | extern int futex_atomic_op_inuser(int encoded_op, int __user *uaddr); |
Jakub Jelinek | 4732efb | 2005-09-06 15:16:25 -0700 | [diff] [blame] | 11 | |
Ingo Molnar | e9056f1 | 2006-03-27 01:16:21 -0800 | [diff] [blame] | 12 | static inline int |
Ingo Molnar | 8f17d3a | 2006-03-27 01:16:27 -0800 | [diff] [blame] | 13 | futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval) |
Ingo Molnar | e9056f1 | 2006-03-27 01:16:21 -0800 | [diff] [blame] | 14 | { |
| 15 | return -ENOSYS; |
| 16 | } |
| 17 | |
Jakub Jelinek | 4732efb | 2005-09-06 15:16:25 -0700 | [diff] [blame] | 18 | #endif |
| 19 | #endif |