Commit 4cfbdfff authored by Adrian Bunk's avatar Adrian Bunk Committed by Paul Mackerras

[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: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 28f9ec34
...@@ -302,7 +302,7 @@ static inline void __raw_writeq(unsigned long v, volatile void __iomem *addr) ...@@ -302,7 +302,7 @@ static inline void __raw_writeq(unsigned long v, volatile void __iomem *addr)
#ifdef CONFIG_PPC32 #ifdef CONFIG_PPC32
#define __do_in_asm(name, op) \ #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; \ unsigned int x; \
__asm__ __volatile__( \ __asm__ __volatile__( \
...@@ -329,7 +329,7 @@ extern __inline__ unsigned int name(unsigned int port) \ ...@@ -329,7 +329,7 @@ extern __inline__ unsigned int name(unsigned int port) \
} }
#define __do_out_asm(name, op) \ #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__( \ __asm__ __volatile__( \
"sync\n" \ "sync\n" \
......
...@@ -98,12 +98,12 @@ typedef struct { ...@@ -98,12 +98,12 @@ typedef struct {
extern u32 get_vir_csrbase(void); extern u32 get_vir_csrbase(void);
extern u32 tsi108_csr_vir_base; extern u32 tsi108_csr_vir_base;
extern inline u32 tsi108_read_reg(u32 reg_offset) static inline u32 tsi108_read_reg(u32 reg_offset)
{ {
return in_be32((volatile u32 *)(tsi108_csr_vir_base + reg_offset)); return in_be32((volatile u32 *)(tsi108_csr_vir_base + reg_offset));
} }
extern inline void tsi108_write_reg(u32 reg_offset, u32 val) static inline void tsi108_write_reg(u32 reg_offset, u32 val)
{ {
out_be32((volatile u32 *)(tsi108_csr_vir_base + reg_offset), val); out_be32((volatile u32 *)(tsi108_csr_vir_base + reg_offset), val);
} }
......
...@@ -304,7 +304,7 @@ extern unsigned long __copy_tofrom_user(void __user *to, ...@@ -304,7 +304,7 @@ extern unsigned long __copy_tofrom_user(void __user *to,
#ifndef __powerpc64__ #ifndef __powerpc64__
extern inline unsigned long copy_from_user(void *to, static inline unsigned long copy_from_user(void *to,
const void __user *from, unsigned long n) const void __user *from, unsigned long n)
{ {
unsigned long over; unsigned long over;
...@@ -319,7 +319,7 @@ extern inline unsigned long copy_from_user(void *to, ...@@ -319,7 +319,7 @@ extern inline unsigned long copy_from_user(void *to,
return n; return n;
} }
extern inline unsigned long copy_to_user(void __user *to, static inline unsigned long copy_to_user(void __user *to,
const void *from, unsigned long n) const void *from, unsigned long n)
{ {
unsigned long over; unsigned long over;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment