Message ID | 1b0477fc-eb29-d74e-64f3-2fca723f3b21@redhat.com |
---|---|
State | New |
Headers | show |
Series | alpha: mlock2, copy_file_range syscalls were introduced in kernel 4.13 | expand |
On 07/24/2018 04:26 PM, Florian Weimer wrote: > I tested this with 4.11 and 4.13 kernel headers using > build-many-glibcs.py, both times with the respective --enable-kernel= > option. OK for 2.28. Reviewed-by: Carlos O'Donell <carlos@redhat.com> > > Subject: [PATCH] alpha: mlock2, copy_file_range syscalls were introduced in kernel 4.13 > To: libc-alpha@sourceware.org > > 2018-07-24 Florian Weimer <fweimer@redhat.com> > > * sysdeps/unix/sysv/linux/alpha/kernel-features.h > [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2) > (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in > 4.13. > > diff --git a/sysdeps/unix/sysv/linux/alpha/kernel-features.h b/sysdeps/unix/sysv/linux/alpha/kernel-features.h > index f63be39d1b..402d2573d7 100644 > --- a/sysdeps/unix/sysv/linux/alpha/kernel-features.h > +++ b/sysdeps/unix/sysv/linux/alpha/kernel-features.h > @@ -45,8 +45,10 @@ > # undef __ASSUME_EXECVEAT > #endif > > -/* Support for statx was added in kernel 4.13. */ > +/* Support for copy_file_range, statx was added in kernel 4.13. */ > #if __LINUX_KERNEL_VERSION < 0x040D00 > +# undef __ASSUME_MLOCK2 > +# undef __ASSUME_COPY_FILE_RANGE > # undef __ASSUME_STATX > #endif >
Subject: [PATCH] alpha: mlock2, copy_file_range syscalls were introduced in kernel 4.13 To: libc-alpha@sourceware.org 2018-07-24 Florian Weimer <fweimer@redhat.com> * sysdeps/unix/sysv/linux/alpha/kernel-features.h [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2) (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in 4.13. diff --git a/sysdeps/unix/sysv/linux/alpha/kernel-features.h b/sysdeps/unix/sysv/linux/alpha/kernel-features.h index f63be39d1b..402d2573d7 100644 --- a/sysdeps/unix/sysv/linux/alpha/kernel-features.h +++ b/sysdeps/unix/sysv/linux/alpha/kernel-features.h @@ -45,8 +45,10 @@ # undef __ASSUME_EXECVEAT #endif -/* Support for statx was added in kernel 4.13. */ +/* Support for copy_file_range, statx was added in kernel 4.13. */ #if __LINUX_KERNEL_VERSION < 0x040D00 +# undef __ASSUME_MLOCK2 +# undef __ASSUME_COPY_FILE_RANGE # undef __ASSUME_STATX #endif