SPARC: add EFD_SEMAPHORE in <bits/eventfd.h>

Message ID 1399412455-10577-1-git-send-email-aurelien@aurel32.net
State Committed
Headers

Commit Message

Aurelien Jarno May 6, 2014, 9:40 p.m. UTC
  EFD_SEMAPHORE has been added in the main <bits/eventfd.h>, but not in
the SPARC specific version. Fix that.
---
 ChangeLog                                    | 6 ++++++
 NEWS                                         | 2 +-
 sysdeps/unix/sysv/linux/sparc/bits/eventfd.h | 2 ++
 3 files changed, 9 insertions(+), 1 deletion(-)
  

Comments

David Miller May 6, 2014, 9:45 p.m. UTC | #1
From: Aurelien Jarno <aurelien@aurel32.net>
Date: Tue,  6 May 2014 23:40:55 +0200

> EFD_SEMAPHORE has been added in the main <bits/eventfd.h>, but not in
> the SPARC specific version. Fix that.

I just sent Dave Jones a trinity build failure report that seemed to
be due to this, is this patch submission related? :-)

More seriously this change looks fine, want me to commit it?
  
Aurelien Jarno May 6, 2014, 9:54 p.m. UTC | #2
On Tue, May 06, 2014 at 05:45:09PM -0400, David Miller wrote:
> From: Aurelien Jarno <aurelien@aurel32.net>
> Date: Tue,  6 May 2014 23:40:55 +0200
> 
> > EFD_SEMAPHORE has been added in the main <bits/eventfd.h>, but not in
> > the SPARC specific version. Fix that.
> 
> I just sent Dave Jones a trinity build failure report that seemed to
> be due to this, is this patch submission related? :-)

No, it is actually an "old" bug report in the Debian BTS that I am
trying to fix.

> More seriously this change looks fine, want me to commit it?

You can commit it if you want, or I can also do it. As you prefer.
  
David Miller May 6, 2014, 9:55 p.m. UTC | #3
From: Aurelien Jarno <aurelien@aurel32.net>
Date: Tue, 6 May 2014 23:54:27 +0200

> On Tue, May 06, 2014 at 05:45:09PM -0400, David Miller wrote:
>> More seriously this change looks fine, want me to commit it?
> 
> You can commit it if you want, or I can also do it. As you prefer.

Feel free to commit it, and please take care of the release branches
if you can.

Thanks a lot!
  

Patch

diff --git a/ChangeLog b/ChangeLog
index ac0d69e..0e661d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@ 
+2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
+
+        [BZ# 16916]
+        * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
+        Define.
+
 2014-05-04  Adam Conrad  <adconrad@0c3.net>
 
 	* locale/iso-4217.def: Reintroduce XDR currency.
diff --git a/NEWS b/NEWS
index 1351c01..7fc7745 100644
--- a/NEWS
+++ b/NEWS
@@ -16,7 +16,7 @@  Version 2.20
   16677, 16680, 16683, 16689, 16695, 16701, 16706, 16707, 16712, 16713,
   16714, 16731, 16739, 16740, 16743, 16754, 16758, 16759, 16760, 16770,
   16786, 16789, 16791, 16799, 16800, 16815, 16823, 16824, 16831, 16838,
-  16854, 16885, 16888, 16890.
+  16854, 16885, 16888, 16890, 16916.
 
 * The minimum Linux kernel version that this version of the GNU C Library
   can be used with is 2.6.32.
diff --git a/sysdeps/unix/sysv/linux/sparc/bits/eventfd.h b/sysdeps/unix/sysv/linux/sparc/bits/eventfd.h
index c81ddff..4d3ae3b 100644
--- a/sysdeps/unix/sysv/linux/sparc/bits/eventfd.h
+++ b/sysdeps/unix/sysv/linux/sparc/bits/eventfd.h
@@ -22,6 +22,8 @@ 
 /* Flags for eventfd.  */
 enum
   {
+    EFD_SEMAPHORE = 0x000001,
+#define EFD_SEMAPHORE EFD_SEMAPHORE
     EFD_CLOEXEC = 0x400000,
 #define EFD_CLOEXEC EFD_CLOEXEC
     EFD_NONBLOCK = 0x004000