RISC-V: don't assume PI mutexes and robust futexes before 4.20 (bug 23864)
authorAndreas Schwab <schwab@suse.de>
Tue, 6 Nov 2018 08:23:02 +0000 (09:23 +0100)
committerAndreas Schwab <schwab@suse.de>
Wed, 7 Nov 2018 08:37:48 +0000 (09:37 +0100)
Support for futex_cmpxchg as only been added to 4.20-rc1.

ChangeLog
sysdeps/unix/sysv/linux/riscv/kernel-features.h

index 4ff4c136b77a2541986be03236df0d599f18f0a7..6be02a7247c7140e867ace5c75e7a4aba4434663 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-11-07  Andreas Schwab  <schwab@suse.de>
+
+       [BZ #23864]
+       * sysdeps/unix/sysv/linux/riscv/kernel-features.h
+       (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
+       Undef.
+
 2018-11-06  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #23862]
index 37f4d99a92fcc1a3ef4ff98f046ae05fa55b5701..d21c824624fe7973fc27a6b0b5a84ca13372b22c 100644 (file)
@@ -21,3 +21,8 @@
 
 #undef __ASSUME_CLONE_DEFAULT
 #define __ASSUME_CLONE_BACKWARDS 1
+
+/* No support for PI mutexes or robust futexes before 4.20.  */
+#if __LINUX_KERNEL_VERSION < 0x041400
+# undef __ASSUME_SET_ROBUST_LIST
+#endif