This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] SH: statx is missing in the kernel


__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(+)

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
-- 
2.14.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]