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 --- 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 #include #include +#include #include #include #include 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 #include +#include 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 #include +#include 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 #include +#include #include #include 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 #include +#include /* * 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 #include #include +#include #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 #include +#include /* * 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 #include +#include #include #include 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 #include +#include 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 #include #include +#include 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 #include +#include /* * 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 #include +#include /* * 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 #include +#include #include #include 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 #include +#include /* * 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 #include +#include #include #include 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 #include +#include #include #include 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 #include +#include 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 #include +#include 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 +#include #include #include 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 #include +#include #include #include 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 #include +#include 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 #include #include +#include #include #include #include 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 #include +#include #include #include -- Inaky - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/