Skip to contentSkip to conversation

lightweight robust futexes: arch defaults

PATCH In review Ingo Molnar 1 participant 1 message Feb 16, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/6 lightweight robust futexes: arch defaults

add placeholder futex_atomic_cmpxchg_inuser() implementations to every architecture that supports futexes. It returns -ENOSYS.

----

 include/asm-frv/futex.h     |    6 ++++++
 include/asm-generic/futex.h |    6 ++++++
 include/asm-i386/futex.h    |    6 ++++++
 include/asm-mips/futex.h    |    6 ++++++
 include/asm-powerpc/futex.h |    6 ++++++
 include/asm-x86_64/futex.h  |    6 ++++++
 6 files changed, 36 insertions(+)
include/asm-frv/futex.h +6 -0
Index: linux-robust-list.q/include/asm-frv/futex.h
===================================================================
@@ -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
Index: linux-robust-list.q/include/asm-generic/futex.h
===================================================================
@@ -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-i386/futex.h +6 -0
Index: linux-robust-list.q/include/asm-i386/futex.h
===================================================================
@@ -104,5 +104,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
Index: linux-robust-list.q/include/asm-mips/futex.h
===================================================================
@@ -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
Index: linux-robust-list.q/include/asm-powerpc/futex.h
===================================================================
@@ -81,5 +81,11 @@ static inline int futex_atomic_op_inuser
 	return ret;
 }
 
+static inline int
+futex_atomic_cmpxchg_inuser(int __user *uaddr, int oldval, int newval)
+{
+	return -ENOSYS;
+}
+
 #endif /* __KERNEL__ */
 #endif /* _ASM_POWERPC_FUTEX_H */
include/asm-x86_64/futex.h +6 -0
Index: linux-robust-list.q/include/asm-x86_64/futex.h
===================================================================
@@ -94,5 +94,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