* [PATCH] alpha: mlock2, copy_file_range syscalls were introduced in kernel 4.13
@ 2018-07-24 20:26 Florian Weimer
2018-07-24 20:32 ` Carlos O'Donell
0 siblings, 1 reply; 2+ messages in thread
From: Florian Weimer @ 2018-07-24 20:26 UTC (permalink / raw
To: GNU C Library, Carlos O'Donell
[-- Attachment #1: Type: text/plain, Size: 151 bytes --]
I tested this with 4.11 and 4.13 kernel headers using
build-many-glibcs.py, both times with the respective --enable-kernel=
option.
Thanks,
Florian
[-- Attachment #2: alpha.patch --]
[-- Type: text/x-patch, Size: 915 bytes --]
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] alpha: mlock2, copy_file_range syscalls were introduced in kernel 4.13
2018-07-24 20:26 [PATCH] alpha: mlock2, copy_file_range syscalls were introduced in kernel 4.13 Florian Weimer
@ 2018-07-24 20:32 ` Carlos O'Donell
0 siblings, 0 replies; 2+ messages in thread
From: Carlos O'Donell @ 2018-07-24 20:32 UTC (permalink / raw
To: Florian Weimer, GNU C Library
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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-24 20:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-24 20:26 [PATCH] alpha: mlock2, copy_file_range syscalls were introduced in kernel 4.13 Florian Weimer
2018-07-24 20:32 ` Carlos O'Donell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).