SH: statx is missing in the kernel

Message ID 20180723180545.23274-1-romain.naour@gmail.com
State New, archived
Headers

Commit Message

Romain Naour July 23, 2018, 6:05 p.m. UTC
  __NR_statx is not defined by the kernel headers and __ASSUME_STATX is
defined since kernel 4.11.

__ASSUME_STATX must be undefined until SH kernel support statx.

Fixes:
../sysdeps/unix/sysv/linux/statx.c:41:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors

Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
 ChangeLog                                    | 5 +++++
 sysdeps/unix/sysv/linux/sh/kernel-features.h | 3 +++
 2 files changed, 8 insertions(+)
  

Patch

diff --git a/ChangeLog b/ChangeLog
index 03dbce43d9..23db06819c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@ 
+2018-07-23  Romain Naour  <romain.naour@gmail.com>  (tiny change)
+
+	* sysdeps/unix/sysv/linux/sh/kernel-features.h
+	(__ASSUME_STATX): Undef.
+
 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
 
 	* scripts/build-many-glibcs.py (Context.checkout): Default
diff --git a/sysdeps/unix/sysv/linux/sh/kernel-features.h b/sysdeps/unix/sysv/linux/sh/kernel-features.h
index 05b7dcd037..9b06ffe284 100644
--- a/sysdeps/unix/sysv/linux/sh/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/sh/kernel-features.h
@@ -56,4 +56,7 @@ 
 # undef __ASSUME_RENAMEAT2
 #endif
 
+/* Support for statx is not available yet for SH.  */
+# undef __ASSUME_STATX
+
 #endif