diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-12-01 06:53:18 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 04:41:26 -0500 |
commit | 4cfbdfff70989a0d99b6f357fbbe379c22a05f7c (patch) | |
tree | d1a547c3c82462cbc75d6eac827261607b33ae69 /include/asm-powerpc/io.h | |
parent | 28f9ec349ae47c91768b7bc5607db4442c818e11 (diff) |
[POWERPC] include/asm-powerpc/: "extern inline" -> "static inline"
"extern inline" generates a warning with -Wmissing-prototypes and I'm
currently working on getting the kernel cleaned up for adding this to
the CFLAGS since it will help us to avoid a nasty class of runtime
errors.
If there are places that really need a forced inline, __always_inline
would be the correct solution.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/io.h')
-rw-r--r-- | include/asm-powerpc/io.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-powerpc/io.h b/include/asm-powerpc/io.h index 75df3bce9ccb..1cd532379c30 100644 --- a/include/asm-powerpc/io.h +++ b/include/asm-powerpc/io.h | |||
@@ -302,7 +302,7 @@ static inline void __raw_writeq(unsigned long v, volatile void __iomem *addr) | |||
302 | #ifdef CONFIG_PPC32 | 302 | #ifdef CONFIG_PPC32 |
303 | 303 | ||
304 | #define __do_in_asm(name, op) \ | 304 | #define __do_in_asm(name, op) \ |
305 | extern __inline__ unsigned int name(unsigned int port) \ | 305 | static inline unsigned int name(unsigned int port) \ |
306 | { \ | 306 | { \ |
307 | unsigned int x; \ | 307 | unsigned int x; \ |
308 | __asm__ __volatile__( \ | 308 | __asm__ __volatile__( \ |
@@ -329,7 +329,7 @@ extern __inline__ unsigned int name(unsigned int port) \ | |||
329 | } | 329 | } |
330 | 330 | ||
331 | #define __do_out_asm(name, op) \ | 331 | #define __do_out_asm(name, op) \ |
332 | extern __inline__ void name(unsigned int val, unsigned int port) \ | 332 | static inline void name(unsigned int val, unsigned int port) \ |
333 | { \ | 333 | { \ |
334 | __asm__ __volatile__( \ | 334 | __asm__ __volatile__( \ |
335 | "sync\n" \ | 335 | "sync\n" \ |