Skip to contentSkip to conversation

dvb/bt8xx: "extern inline" -> "static inline"

PATCH In review Adrian Bunk 2 participants 2 messages Aug 14, 2007 – Aug 16, 2007 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dvb/bt8xx: "extern inline" -> "static inline"

"extern inline" will have different semantics with gcc 4.3.

---
6ffbe5b19606cd8756be4d04e0902de69e447c85

drivers/media/dvb/bt8xx/bt878.h +1 -1
index f685bc1..1c8e336 100644
@@ -149,7 +149,7 @@ void bt878_start(struct bt878 *bt, u32 controlreg, u32 op_sync_orin,
 void bt878_stop(struct bt878 *bt);
 
 #if defined(__powerpc__)	/* big-endian */
-extern __inline__ void io_st_le32(volatile unsigned __iomem *addr, unsigned val)
+static inline void io_st_le32(volatile unsigned __iomem *addr, unsigned val)
 {
 	__asm__ __volatile__("stwbrx %1,0,%2":"=m"(*addr):"r"(val),
 			     "r"(addr));
#1 lore raw
Quoted 13 lines · Adrian Bunk

"extern inline" will have different semantics with gcc 4.3.

---
6ffbe5b19606cd8756be4d04e0902de69e447c85

drivers/media/dvb/bt8xx/bt878.h +0 -0
index f685bc1..1c8e336 100644

drivers/media/dvb/bt8xx/bt878.h void bt878_start(struct bt878 *bt, u32 controlreg, u32 op_sync_orin, · line 155

Quoted 8 lines
drivers/media/dvb/bt8xx/bt878.h +1 -1
@@ -149,7 +149,7 @@ void bt878_start(struct bt878 *bt, u32 controlreg, u32 op_sync_orin,
 void bt878_stop(struct bt878 *bt);
 
 #if defined(__powerpc__)	/* big-endian */
-extern __inline__ void io_st_le32(volatile unsigned __iomem *addr, unsigned val)
+static inline void io_st_le32(volatile unsigned __iomem *addr, unsigned val)
 {
 	__asm__ __volatile__("stwbrx %1,0,%2":"=m"(*addr):"r"(val),
 			     "r"(addr));