Skip to contentSkip to conversation

fix unusual placement of inline keyword in hpet

PATCH New Adrian Bunk 1 participant 1 message Jul 17, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix unusual placement of inline keyword in hpet

Trivial path to get rid of
drivers/char/hpet.c:102: warning: inline' is not at beginning of declaration drivers/char/hpet.c:109: warning: inline' is not at beginning of declaration when building with gcc -W

Patch makes no actual code changes, just reduces the number of warnings peole have to sift through when using -W to look for trouble spots. Please apply.

---

This patch was sent by Jesper Juhl on:
- 25 Nov 2004

drivers/char/hpet.c +2 -2
@@ -99,14 +99,14 @@ static struct hpets *hpets;
 #endif
 
 #ifndef readq
-static unsigned long long __inline readq(void __iomem *addr)
+static inline unsigned long long readq(void __iomem *addr)
 {
 	return readl(addr) | (((unsigned long long)readl(addr + 4)) << 32LL);
 }
 #endif
 
 #ifndef writeq
-static void __inline writeq(unsigned long long v, void __iomem *addr)
+static inline void writeq(unsigned long long v, void __iomem *addr)
 {
 	writel(v & 0xffffffff, addr);
 	writel(v >> 32, addr + 4);