public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] alpha: Correct kernel version needed to define __ASSUME_ACCEPT4.
@ 2012-04-27  2:41 Matt Turner
  2012-04-27  4:11 ` Mike Frysinger
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Turner @ 2012-04-27  2:41 UTC (permalink / raw)
  To: Richard Henderson, Michael Cree; +Cc: libc-ports, Matt Turner

---
 ChangeLog.alpha                                 |    5 +++++
 sysdeps/unix/sysv/linux/alpha/kernel-features.h |    6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index 08de3cf..d6116d1 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,10 @@
 2012-04-26  Matt Turner  <mattst88@gmail.com>
 
+	* sysdeps/unix/sysv/linux/alpha/kernel-features.h: Correct kernel
+	version needed to define __ASSUME_ACCEPT4.
+
+2012-04-26  Matt Turner  <mattst88@gmail.com>
+
 	* * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo): Use "c"
 	and "e" in fopen.
 
diff --git a/sysdeps/unix/sysv/linux/alpha/kernel-features.h b/sysdeps/unix/sysv/linux/alpha/kernel-features.h
index 1f30c65..e532826 100644
--- a/sysdeps/unix/sysv/linux/alpha/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/alpha/kernel-features.h
@@ -1,6 +1,6 @@
 /* Set flags signalling availability of kernel features based on given
    kernel version number.
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -63,8 +63,8 @@
 # define __ASSUME_SIGNALFD4 1
 #endif
 
-/* Support for accept4 was added for alpha after 2.6.33-rc1.  */
-#if __LINUX_KERNEL_VERSION >= 0x020621
+/* Support for accept4 was added for alpha after 3.0.  */
+#if __LINUX_KERNEL_VERSION >= 0x030100
 # define __ASSUME_ACCEPT4      1
 #endif
 
-- 
1.7.3.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] alpha: Correct kernel version needed to define __ASSUME_ACCEPT4.
  2012-04-27  2:41 [PATCH] alpha: Correct kernel version needed to define __ASSUME_ACCEPT4 Matt Turner
@ 2012-04-27  4:11 ` Mike Frysinger
  2012-04-27  4:22   ` Matt Turner
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2012-04-27  4:11 UTC (permalink / raw)
  To: libc-ports; +Cc: Matt Turner, Richard Henderson, Michael Cree

[-- Attachment #1: Type: Text/Plain, Size: 492 bytes --]

On Thursday 26 April 2012 22:41:06 Matt Turner wrote:
> -/* Support for accept4 was added for alpha after 2.6.33-rc1.  */
> -#if __LINUX_KERNEL_VERSION >= 0x020621
> +/* Support for accept4 was added for alpha after 3.0.  */
> +#if __LINUX_KERNEL_VERSION >= 0x030100
>  # define __ASSUME_ACCEPT4      1
>  #endif

err, you sure ?  seems to me it was added in the 3.2 release.

`git log -p v3.1 arch/alpha/include/asm/unistd.h` doesn't show accept4, but 
the v3.2 tag does.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] alpha: Correct kernel version needed to define __ASSUME_ACCEPT4.
  2012-04-27  4:11 ` Mike Frysinger
@ 2012-04-27  4:22   ` Matt Turner
  2012-04-27  4:45     ` Mike Frysinger
                       ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Matt Turner @ 2012-04-27  4:22 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: libc-ports, Richard Henderson, Michael Cree

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

On Fri, Apr 27, 2012 at 12:13 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Thursday 26 April 2012 22:41:06 Matt Turner wrote:
>> -/* Support for accept4 was added for alpha after 2.6.33-rc1.  */
>> -#if __LINUX_KERNEL_VERSION >= 0x020621
>> +/* Support for accept4 was added for alpha after 3.0.  */
>> +#if __LINUX_KERNEL_VERSION >= 0x030100
>>  # define __ASSUME_ACCEPT4      1
>>  #endif
>
> err, you sure ?  seems to me it was added in the 3.2 release.
>
> `git log -p v3.1 arch/alpha/include/asm/unistd.h` doesn't show accept4, but
> the v3.2 tag does.
> -mike

You're right. It went in right after 3.1. Updated patch attached.

[-- Attachment #2: 0001-alpha-Correct-kernel-version-needed-to-define-__ASSU.patch --]
[-- Type: application/octet-stream, Size: 1771 bytes --]

From 84bfea571d7f5856dfed55028d7ada588405a3b4 Mon Sep 17 00:00:00 2001
From: Matt Turner <mattst88@gmail.com>
Date: Thu, 26 Apr 2012 22:40:14 -0400
Subject: [PATCH] alpha: Correct kernel version needed to define __ASSUME_ACCEPT4.

---
 ChangeLog.alpha                                 |    5 +++++
 sysdeps/unix/sysv/linux/alpha/kernel-features.h |    6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index 08de3cf..d6116d1 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,10 @@
 2012-04-26  Matt Turner  <mattst88@gmail.com>
 
+	* sysdeps/unix/sysv/linux/alpha/kernel-features.h: Correct kernel
+	version needed to define __ASSUME_ACCEPT4.
+
+2012-04-26  Matt Turner  <mattst88@gmail.com>
+
 	* * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo): Use "c"
 	and "e" in fopen.
 
diff --git a/sysdeps/unix/sysv/linux/alpha/kernel-features.h b/sysdeps/unix/sysv/linux/alpha/kernel-features.h
index 1f30c65..4b224d6 100644
--- a/sysdeps/unix/sysv/linux/alpha/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/alpha/kernel-features.h
@@ -1,6 +1,6 @@
 /* Set flags signalling availability of kernel features based on given
    kernel version number.
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -63,8 +63,8 @@
 # define __ASSUME_SIGNALFD4 1
 #endif
 
-/* Support for accept4 was added for alpha after 2.6.33-rc1.  */
-#if __LINUX_KERNEL_VERSION >= 0x020621
+/* Support for accept4 was added for alpha after 3.1.  */
+#if __LINUX_KERNEL_VERSION >= 0x030200
 # define __ASSUME_ACCEPT4      1
 #endif
 
-- 
1.7.3.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] alpha: Correct kernel version needed to define __ASSUME_ACCEPT4.
  2012-04-27  4:22   ` Matt Turner
@ 2012-04-27  4:45     ` Mike Frysinger
  2012-04-27  7:59     ` Michael Cree
  2012-04-27 14:37     ` Richard Henderson
  2 siblings, 0 replies; 6+ messages in thread
From: Mike Frysinger @ 2012-04-27  4:45 UTC (permalink / raw)
  To: Matt Turner; +Cc: libc-ports, Richard Henderson, Michael Cree

[-- Attachment #1: Type: Text/Plain, Size: 51 bytes --]

Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] alpha: Correct kernel version needed to define __ASSUME_ACCEPT4.
  2012-04-27  4:22   ` Matt Turner
  2012-04-27  4:45     ` Mike Frysinger
@ 2012-04-27  7:59     ` Michael Cree
  2012-04-27 14:37     ` Richard Henderson
  2 siblings, 0 replies; 6+ messages in thread
From: Michael Cree @ 2012-04-27  7:59 UTC (permalink / raw)
  To: Matt Turner; +Cc: Mike Frysinger, libc-ports, Richard Henderson

On 27/04/12 16:21, Matt Turner wrote:
> 
> You're right. It went in right after 3.1. Updated patch attached.

Acked-by: Michael Cree <mcree@orcon.net.nz>

Cheers
Michael.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] alpha: Correct kernel version needed to define __ASSUME_ACCEPT4.
  2012-04-27  4:22   ` Matt Turner
  2012-04-27  4:45     ` Mike Frysinger
  2012-04-27  7:59     ` Michael Cree
@ 2012-04-27 14:37     ` Richard Henderson
  2 siblings, 0 replies; 6+ messages in thread
From: Richard Henderson @ 2012-04-27 14:37 UTC (permalink / raw)
  To: Matt Turner; +Cc: Mike Frysinger, libc-ports, Michael Cree

On 04/26/12 21:21, Matt Turner wrote:
> On Fri, Apr 27, 2012 at 12:13 AM, Mike Frysinger <vapier@gentoo.org> wrote:
>> On Thursday 26 April 2012 22:41:06 Matt Turner wrote:
>>> -/* Support for accept4 was added for alpha after 2.6.33-rc1.  */
>>> -#if __LINUX_KERNEL_VERSION >= 0x020621
>>> +/* Support for accept4 was added for alpha after 3.0.  */
>>> +#if __LINUX_KERNEL_VERSION >= 0x030100
>>>  # define __ASSUME_ACCEPT4      1
>>>  #endif
>>
>> err, you sure ?  seems to me it was added in the 3.2 release.
>>
>> `git log -p v3.1 arch/alpha/include/asm/unistd.h` doesn't show accept4, but
>> the v3.2 tag does.
>> -mike
> 
> You're right. It went in right after 3.1. Updated patch attached.

Applied all 6 patches from today.


r~

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-27 14:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-27  2:41 [PATCH] alpha: Correct kernel version needed to define __ASSUME_ACCEPT4 Matt Turner
2012-04-27  4:11 ` Mike Frysinger
2012-04-27  4:22   ` Matt Turner
2012-04-27  4:45     ` Mike Frysinger
2012-04-27  7:59     ` Michael Cree
2012-04-27 14:37     ` Richard Henderson

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).