diff mbox

Update MicroBlaze kernel-features.h for syscalls added in 3.15

Message ID Pine.LNX.4.64.1406171557250.23412@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph Myers June 17, 2014, 3:58 p.m. UTC
Now that the MicroBlaze 3.15 kernel has the pselect6, preadv and
pwritev syscalls, this patch updates kernel-features.h so they are
assumed to be present for 3.15 and later kernels.

Not tested.

2014-06-17  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/microblaze/kernel-features.h
	[__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
	undefine.
	[__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
	[__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.

Comments

Joseph Myers June 23, 2014, 11:57 a.m. UTC | #1
Ping.  This patch 
<https://sourceware.org/ml/libc-alpha/2014-06/msg00414.html> is pending 
review.
Joseph Myers June 30, 2014, 3:17 p.m. UTC | #2
Ping^2 (last ping for this patch for 2.20).  This patch 
<https://sourceware.org/ml/libc-alpha/2014-06/msg00414.html> is still 
pending review.
David Holsgrove July 1, 2014, 11:43 a.m. UTC | #3
Hi Joseph,

On 1 July 2014 01:17, Joseph S. Myers <joseph@codesourcery.com> wrote:
> Ping^2 (last ping for this patch for 2.20).  This patch
> <https://sourceware.org/ml/libc-alpha/2014-06/msg00414.html> is still
> pending review.
>

Thanks for this and sorry for delay - I went ahead and committed your
patch along with Roland's nptl changes.

thanks again,
David

> --
> Joseph S. Myers
> joseph@codesourcery.com
diff mbox

Patch

diff --git a/sysdeps/unix/sysv/linux/microblaze/kernel-features.h b/sysdeps/unix/sysv/linux/microblaze/kernel-features.h
index 066c12d..34b0521 100644
--- a/sysdeps/unix/sysv/linux/microblaze/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/microblaze/kernel-features.h
@@ -45,8 +45,10 @@ 
 # undef __ASSUME_SET_ROBUST_LIST
 #endif
 
-/* The MicroBlaze kernel does not support the pselect6, preadv and
-   pwritev syscalls.  */
-#undef __ASSUME_PSELECT
-#undef __ASSUME_PREADV
-#undef __ASSUME_PWRITEV
+/* Support for the pselect6, preadv and pwritev syscalls was added in
+   3.15.  */
+#if __LINUX_KERNEL_VERSION < 0x030f00
+# undef __ASSUME_PSELECT
+# undef __ASSUME_PREADV
+# undef __ASSUME_PWRITEV
+#endif