]> sourceware.org Git - glibc.git/commitdiff
Correct SH kernel-features.h undefines (bug 23862).
authorJoseph Myers <joseph@codesourcery.com>
Tue, 6 Nov 2018 17:22:50 +0000 (17:22 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 6 Nov 2018 17:22:50 +0000 (17:22 +0000)
The SH kernel-features.h undefines __ASSUME_RENAMEAT2 for kernel
versions before 4.8, but fails to undefine __ASSUME_EXECVEAT,
__ASSUME_MLOCK2 and __ASSUME_COPY_FILE_RANGE, although all those
syscalls (and several others) were added for SH in the same Linux
kernel commit (first released in 4.8).  This patch adds the proper
undefines of those macros.

Tested with build-many-glibcs.py for its SH configurations.

[BZ #23862]
* sysdeps/unix/sysv/linux/sh/kernel-features.h
[__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
[__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
[__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
Likewise.

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

index 9b8f6f2db928d162cd72484bbd73fd49ca8b6b56..4ff4c136b77a2541986be03236df0d599f18f0a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2018-11-06  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #23862]
+       * sysdeps/unix/sysv/linux/sh/kernel-features.h
+       [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
+       [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
+       [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
+       Likewise.
+
 2018-11-06  Florian Weimer  <fweimer@redhat.com>
 
        [BZ #17405]
index b8ccb01518b6a7c7c46ce70d6bd964f529c88d24..60b6a8126b255c2b9491cec51928979a7cedc4a0 100644 (file)
 /* sh only supports ipc syscall.  */
 #undef __ASSUME_DIRECT_SYSVIPC_SYSCALLS
 
-/* Support for the renameat2 syscall was added in 4.8.  */
+/* Support for several syscalls was added in 4.8.  */
 #if __LINUX_KERNEL_VERSION < 0x040800
 # undef __ASSUME_RENAMEAT2
+# undef __ASSUME_EXECVEAT
+# undef __ASSUME_MLOCK2
+# undef __ASSUME_COPY_FILE_RANGE
 #endif
 
 /* sh does not support the statx system call.  */
This page took 0.077654 seconds and 5 git commands to generate.