Commit 887c27f3 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] fix unusual placement of inline keyword in hpet

With gcc -W:

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
Signed-off-by: default avatarJesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b3358a11
...@@ -100,14 +100,14 @@ static struct hpets *hpets; ...@@ -100,14 +100,14 @@ static struct hpets *hpets;
#endif #endif
#ifndef readq #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); return readl(addr) | (((unsigned long long)readl(addr + 4)) << 32LL);
} }
#endif #endif
#ifndef writeq #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 & 0xffffffff, addr);
writel(v >> 32, addr + 4); writel(v >> 32, addr + 4);
......
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