blob: 2e1da71e27a45a75f96ef0b91d1f35a71480b2c4 [file] [log] [blame]
Jakub Jelinek4732efb2005-09-06 15:16:25 -07001#ifndef _ASM_FUTEX_H
2#define _ASM_FUTEX_H
3
4#ifdef __KERNEL__
5
6#include <linux/futex.h>
7#include <asm/errno.h>
Linus Torvalds7c0f6ba2016-12-24 11:46:01 -08008#include <linux/uaccess.h>
Jakub Jelinek4732efb2005-09-06 15:16:25 -07009
Michel Lespinasse8d7718a2011-03-10 18:50:58 -080010extern int futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr);
Jakub Jelinek4732efb2005-09-06 15:16:25 -070011
Ingo Molnare9056f12006-03-27 01:16:21 -080012static inline int
Michel Lespinasse8d7718a2011-03-10 18:50:58 -080013futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
14 u32 oldval, u32 newval)
Ingo Molnare9056f12006-03-27 01:16:21 -080015{
16 return -ENOSYS;
17}
18
Jakub Jelinek4732efb2005-09-06 15:16:25 -070019#endif
20#endif