public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: inaky@linux.intel.com
To: Arjan van de Ven <arjan@infradead.org>, mingo@redhat.com, akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [patch 2/2] semaphores: all arches use include/asm-generic/semaphore.h
Date: Mon, 26 Feb 2007 16:13:40 -0800	[thread overview]
Message-ID: <20070227001605.729627007@sodium.jf.intel.com> (raw)
In-Reply-To: 20070227001338.344233745@sodium.jf.intel.com

[-- Attachment #1: semaphores-all-arches-use-include-asm-generic-semaphore-h.patch --]
[-- Type: text/plain, Size: 11362 bytes --]

As suggested by Arjan van de Ven, introduced a generic semaphore.h for
all that arches (previous patch in series). Make all arches include
that generic file.

Warning: not compile tested in all arches

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>

---
 include/asm-alpha/semaphore.h     |    1 +
 include/asm-arm/semaphore.h       |    1 +
 include/asm-arm26/semaphore.h     |    1 +
 include/asm-avr32/semaphore.h     |    1 +
 include/asm-cris/semaphore.h      |    1 +
 include/asm-frv/semaphore.h       |    1 +
 include/asm-h8300/semaphore.h     |    1 +
 include/asm-i386/semaphore.h      |    1 +
 include/asm-ia64/semaphore.h      |    1 +
 include/asm-m32r/semaphore.h      |    1 +
 include/asm-m68k/semaphore.h      |    1 +
 include/asm-m68knommu/semaphore.h |    1 +
 include/asm-mips/semaphore.h      |    1 +
 include/asm-parisc/semaphore.h    |    1 +
 include/asm-powerpc/semaphore.h   |    1 +
 include/asm-s390/semaphore.h      |    1 +
 include/asm-sh/semaphore.h        |    1 +
 include/asm-sh64/semaphore.h      |    1 +
 include/asm-sparc/semaphore.h     |    1 +
 include/asm-sparc64/semaphore.h   |    1 +
 include/asm-v850/semaphore.h      |    1 +
 include/asm-x86_64/semaphore.h    |    1 +
 include/asm-xtensa/semaphore.h    |    1 +
 23 files changed, 23 insertions(+)

Index: linux.hg/include/asm-alpha/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-alpha/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-alpha/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -11,6 +11,7 @@
 #include <asm/current.h>
 #include <asm/system.h>
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 #include <linux/compiler.h>
 #include <linux/wait.h>
 #include <linux/rwsem.h>
Index: linux.hg/include/asm-arm/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-arm/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-arm/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -11,6 +11,7 @@
 
 #include <asm/atomic.h>
 #include <asm/locks.h>
+#include <asm-generic/semaphore.h>
 
 struct semaphore {
 	atomic_t count;
Index: linux.hg/include/asm-arm26/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-arm26/semaphore.h	2007-02-26 15:51:26.000000000 -0800
+++ linux.hg/include/asm-arm26/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -11,6 +11,7 @@
 
 #include <asm/atomic.h>
 #include <asm/locks.h>
+#include <asm-generic/semaphore.h>
 
 struct semaphore {
 	atomic_t count;
Index: linux.hg/include/asm-avr32/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-avr32/semaphore.h	2007-02-26 15:51:26.000000000 -0800
+++ linux.hg/include/asm-avr32/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -17,6 +17,7 @@
 
 #include <asm/system.h>
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 #include <linux/wait.h>
 #include <linux/rwsem.h>
 
Index: linux.hg/include/asm-cris/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-cris/semaphore.h	2007-02-26 15:51:26.000000000 -0800
+++ linux.hg/include/asm-cris/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -13,6 +13,7 @@
 
 #include <asm/system.h>
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 
 /*
  * CRIS semaphores, implemented in C-only so far. 
Index: linux.hg/include/asm-frv/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-frv/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-frv/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -19,6 +19,7 @@
 #include <linux/wait.h>
 #include <linux/spinlock.h>
 #include <linux/rwsem.h>
+#include <asm-generic/semaphore.h>
 
 #define SEMAPHORE_DEBUG		0
 
Index: linux.hg/include/asm-h8300/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-h8300/semaphore.h	2007-02-26 15:51:26.000000000 -0800
+++ linux.hg/include/asm-h8300/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -12,6 +12,7 @@
 
 #include <asm/system.h>
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 
 /*
  * Interrupt-safe semaphores..
Index: linux.hg/include/asm-i386/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-i386/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-i386/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -38,6 +38,7 @@
 
 #include <asm/system.h>
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 #include <linux/wait.h>
 #include <linux/rwsem.h>
 
Index: linux.hg/include/asm-ia64/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-ia64/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-ia64/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -10,6 +10,7 @@
 #include <linux/rwsem.h>
 
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 
 struct semaphore {
 	atomic_t count;
Index: linux.hg/include/asm-m32r/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-m32r/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-m32r/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -17,6 +17,7 @@
 #include <asm/assembler.h>
 #include <asm/system.h>
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 
 struct semaphore {
 	atomic_t count;
Index: linux.hg/include/asm-m68k/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-m68k/semaphore.h	2007-02-26 15:51:26.000000000 -0800
+++ linux.hg/include/asm-m68k/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -13,6 +13,7 @@
 
 #include <asm/system.h>
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 
 /*
  * Interrupt-safe semaphores..
Index: linux.hg/include/asm-m68knommu/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-m68knommu/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-m68knommu/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -12,6 +12,7 @@
 
 #include <asm/system.h>
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 
 /*
  * Interrupt-safe semaphores..
Index: linux.hg/include/asm-mips/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-mips/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-mips/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -26,6 +26,7 @@
 
 #include <asm/atomic.h>
 #include <asm/system.h>
+#include <asm-generic/semaphore.h>
 #include <linux/wait.h>
 #include <linux/rwsem.h>
 
Index: linux.hg/include/asm-parisc/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-parisc/semaphore.h	2007-02-26 15:51:26.000000000 -0800
+++ linux.hg/include/asm-parisc/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -29,6 +29,7 @@
 #include <linux/rwsem.h>
 
 #include <asm/system.h>
+#include <asm-generic/semaphore.h>
 
 /*
  * The `count' is initialised to the number of people who are allowed to
Index: linux.hg/include/asm-powerpc/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-powerpc/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-powerpc/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -12,6 +12,7 @@
 
 #include <asm/atomic.h>
 #include <asm/system.h>
+#include <asm-generic/semaphore.h>
 #include <linux/wait.h>
 #include <linux/rwsem.h>
 
Index: linux.hg/include/asm-s390/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-s390/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-s390/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -13,6 +13,7 @@
 
 #include <asm/system.h>
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 #include <linux/wait.h>
 #include <linux/rwsem.h>
 
Index: linux.hg/include/asm-sh/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-sh/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-sh/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -19,6 +19,7 @@
 
 #include <asm/system.h>
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 
 struct semaphore {
 	atomic_t count;
Index: linux.hg/include/asm-sh64/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-sh64/semaphore.h	2007-02-26 15:51:26.000000000 -0800
+++ linux.hg/include/asm-sh64/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -26,6 +26,7 @@
 
 #include <asm/system.h>
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 
 struct semaphore {
 	atomic_t count;
Index: linux.hg/include/asm-sparc/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-sparc/semaphore.h	2007-02-26 15:51:26.000000000 -0800
+++ linux.hg/include/asm-sparc/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -6,6 +6,7 @@
 #ifdef __KERNEL__
 
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 #include <linux/wait.h>
 #include <linux/rwsem.h>
 
Index: linux.hg/include/asm-sparc64/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-sparc64/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-sparc64/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -10,6 +10,7 @@
 
 #include <asm/atomic.h>
 #include <asm/system.h>
+#include <asm-generic/semaphore.h>
 #include <linux/wait.h>
 #include <linux/rwsem.h>
 
Index: linux.hg/include/asm-v850/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-v850/semaphore.h	2007-02-26 15:51:27.000000000 -0800
+++ linux.hg/include/asm-v850/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -7,6 +7,7 @@
 #include <linux/rwsem.h>
 
 #include <asm/atomic.h>
+#include <asm-generic/semaphore.h>
 
 struct semaphore {
 	atomic_t count;
Index: linux.hg/include/asm-x86_64/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-x86_64/semaphore.h	2007-02-26 15:51:26.000000000 -0800
+++ linux.hg/include/asm-x86_64/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -39,6 +39,7 @@
 #include <asm/system.h>
 #include <asm/atomic.h>
 #include <asm/rwlock.h>
+#include <asm-generic/semaphore.h>
 #include <linux/wait.h>
 #include <linux/rwsem.h>
 #include <linux/stringify.h>
Index: linux.hg/include/asm-xtensa/semaphore.h
===================================================================
--- linux.hg.orig/include/asm-xtensa/semaphore.h	2007-02-26 15:51:26.000000000 -0800
+++ linux.hg/include/asm-xtensa/semaphore.h	2007-02-26 15:53:11.000000000 -0800
@@ -13,6 +13,7 @@
 
 #include <asm/atomic.h>
 #include <asm/system.h>
+#include <asm-generic/semaphore.h>
 #include <linux/wait.h>
 #include <linux/rwsem.h>
 

--

Inaky

  parent reply	other threads:[~2007-02-27  0:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-27  0:13 [patch 0/2] semaphores: add down_interruptible_timeout() and asm-generic/semaphore.h inaky
2007-02-27  0:13 ` [patch 1/2] semaphores: Add down_interruptible_timeout() inaky
2007-02-27  0:13 ` inaky [this message]
2007-02-27  0:33 ` [patch 0/2] semaphores: add down_interruptible_timeout() and asm-generic/semaphore.h Christoph Hellwig
2007-02-27  0:54   ` Inaky Perez-Gonzalez
2007-02-27  2:18     ` Alan
2007-02-27  1:57       ` Inaky Perez-Gonzalez
2007-02-27 20:45         ` Ingo Oeser
2007-03-03  1:17           ` Inaky Perez-Gonzalez
2007-02-27 20:24     ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070227001605.729627007@sodium.jf.intel.com \
    --to=inaky@linux.intel.com \
    --cc=akpm@osdl.org \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox