]> err.no Git - linux-2.6/blobdiff - include/asm-powerpc/io.h
[PATCH] LOG2: Provide ilog2() fallbacks for powerpc
[linux-2.6] / include / asm-powerpc / io.h
index 75df3bce9ccbebfa1d74b0f94a220352d50697fc..1cd532379c30035fd64f01d5d973c7414ffb15dc 100644 (file)
@@ -302,7 +302,7 @@ static inline void __raw_writeq(unsigned long v, volatile void __iomem *addr)
 #ifdef CONFIG_PPC32
 
 #define __do_in_asm(name, op)                          \
-extern __inline__ unsigned int name(unsigned int port) \
+static inline unsigned int name(unsigned int port)     \
 {                                                      \
        unsigned int x;                                 \
        __asm__ __volatile__(                           \
@@ -329,7 +329,7 @@ extern __inline__ unsigned int name(unsigned int port)      \
 }
 
 #define __do_out_asm(name, op)                         \
-extern __inline__ void name(unsigned int val, unsigned int port) \
+static inline void name(unsigned int val, unsigned int port) \
 {                                                      \
        __asm__ __volatile__(                           \
                "sync\n"                                \