[ARM] "extern inline" -> "static inline"
authorAdrian Bunk <bunk@kernel.org>
Mon, 27 Aug 2007 21:28:17 +0000 (23:28 +0200)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 12 Oct 2007 22:43:17 +0000 (23:43 +0100)
"extern inline" will have different semantics with gcc 4.3.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/nwfpe/ARM-gcc.h
arch/arm/nwfpe/fpa11.inl
include/asm-arm/arch-ixp23xx/platform.h

index e6598470b07676d11720508a97f66b42da9abe61..436e54aa02ec952601955f2587b4192aedc1c978 100644 (file)
@@ -68,7 +68,7 @@ a compiler does not support explicit inlining, this macro should be defined
 to be `static'.
 -------------------------------------------------------------------------------
 */
-#define INLINE extern __inline__
+#define INLINE static inline
 
 
 /* For use as a GCC soft-float library we need some special function names. */
index 10c3caf2868f8cf33ceb1e02406c7d32923e212c..ab8d6826245fa423e594c1df294806f8c0957992 100644 (file)
 #include "fpa11.h"
 
 /* Read and write floating point status register */
-extern __inline__ unsigned int readFPSR(void)
+static inline unsigned int readFPSR(void)
 {
        FPA11 *fpa11 = GET_FPA11();
        return (fpa11->fpsr);
 }
 
-extern __inline__ void writeFPSR(FPSR reg)
+static inline void writeFPSR(FPSR reg)
 {
        FPA11 *fpa11 = GET_FPA11();
        /* the sysid byte in the status register is readonly */
@@ -36,14 +36,14 @@ extern __inline__ void writeFPSR(FPSR reg)
 }
 
 /* Read and write floating point control register */
-extern __inline__ FPCR readFPCR(void)
+static inline FPCR readFPCR(void)
 {
        FPA11 *fpa11 = GET_FPA11();
        /* clear SB, AB and DA bits before returning FPCR */
        return (fpa11->fpcr & ~MASK_RFC);
 }
 
-extern __inline__ void writeFPCR(FPCR reg)
+static inline void writeFPCR(FPCR reg)
 {
        FPA11 *fpa11 = GET_FPA11();
        fpa11->fpcr &= ~MASK_WFC;               /* clear SB, AB and DA bits */
index 56e16d66645a090fe1913ffeaafeb8e2a7d8dfa2..db8aa304c93da5a81ac83ca3d167b0cfa177c06d 100644 (file)
 
 #ifndef __ASSEMBLY__
 
-extern inline unsigned long ixp2000_reg_read(volatile void *reg)
+static inline unsigned long ixp2000_reg_read(volatile void *reg)
 {
        return *((volatile unsigned long *)reg);
 }
 
-extern inline void ixp2000_reg_write(volatile void *reg, unsigned long val)
+static inline void ixp2000_reg_write(volatile void *reg, unsigned long val)
 {
        *((volatile unsigned long *)reg) = val;
 }
 
-extern inline void ixp2000_reg_wrb(volatile void *reg, unsigned long val)
+static inline void ixp2000_reg_wrb(volatile void *reg, unsigned long val)
 {
        *((volatile unsigned long *)reg) = val;
 }