patch-2.4.9 linux/include/asm-arm/arch-l7200/io.h

Next file: linux/include/asm-arm/arch-l7200/memory.h
Previous file: linux/include/asm-arm/arch-integrator/time.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/include/asm-arm/arch-l7200/io.h linux/include/asm-arm/arch-l7200/io.h
@@ -29,7 +29,7 @@
 #define __arch_getb(a)          (*(volatile unsigned char *)(a))
 #define __arch_getl(a)          (*(volatile unsigned int  *)(a))
 
-extern __inline__ unsigned int __arch_getw(unsigned long a)
+static inline unsigned int __arch_getw(unsigned long a)
 {
 	unsigned int value;
 	__asm__ __volatile__("ldr%?h    %0, [%1, #0]    @ getw"
@@ -41,7 +41,7 @@
 #define __arch_putb(v,a)        (*(volatile unsigned char *)(a) = (v))
 #define __arch_putl(v,a)        (*(volatile unsigned int  *)(a) = (v))
 
-extern __inline__ void __arch_putw(unsigned int value, unsigned long a)
+static inline void __arch_putw(unsigned int value, unsigned long a)
 {
         __asm__ __volatile__("str%?h    %0, [%1, #0]    @ putw"
                 : : "r" (value), "r" (a));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)