lightweight robust futexes: arch defaults
Subsystems (2)
PATCH 3/5 lightweight robust futexes: arch defaults
add placeholder futex_atomic_cmpxchg_inuser() implementations to every architecture that supports futexes. It returns -ENOSYS.
Signed-off-by Ingo Molnar <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
Signed-off-by Arjan van de Ven <[email protected]>
Acked-by Ulrich Drepper <[email protected]>
----
include/asm-frv/futex.h | 6 ++++++ include/asm-generic/futex.h | 6 ++++++ include/asm-mips/futex.h | 6 ++++++ include/asm-powerpc/futex.h | 6 ++++++ 4 files changed, 24 insertions(+)
include/asm-frv/futex.h +6 -0
@@ -9,5 +9,11 @@extern int futex_atomic_op_inuser (int encoded_op,int __user *uaddr); +static inline int +futex_atomic_cmpxchg_inuser (int __user *uaddr,int oldval,int newval) +{ +return -ENOSYS ; +} +#endif #endif
include/asm-generic/futex.h +6 -0
@@ -49,5 +49,11 @@ futex_atomic_op_inuser (int encoded_op,return ret; } +static inline int +futex_atomic_cmpxchg_inuser (int __user *uaddr,int oldval,int newval) +{ +return -ENOSYS ; +} +#endif #endif
include/asm-mips/futex.h +6 -0
@@ -99,5 +99,11 @@ futex_atomic_op_inuser (int encoded_op,return ret; } +static inline int +futex_atomic_cmpxchg_inuser (int __user *uaddr,int oldval,int newval) +{ +return -ENOSYS ; +} +#endif #endif
include/asm-powerpc/futex.h +6 -0
@@ -81,5 +81,11 @@ static inline int futex_atomic_op_inuserreturn ret; } +static inline int +futex_atomic_cmpxchg_inuser (int __user *uaddr,int oldval,int newval) +{ +return -ENOSYS ; +} +#endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_FUTEX_H */