提交 44033109 编写于 作者: C Corey Minyard 提交者: Paul Mundt

SH: Convert out[bwl] macros to inline functions

The macros just called BUG(), but that results in unused variable
warnings all over the place, like in the IPMI driver.  The build
regression emails were annoying me, so here's the fix.  I have
not even compile tested this, but it's rather obvious.

[ port type mangled to unsigned long ]
Signed-off-by: NCorey Minyard <cminyard@mvista.com>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 64941d89
...@@ -19,9 +19,20 @@ static inline u32 inl(unsigned long addr) ...@@ -19,9 +19,20 @@ static inline u32 inl(unsigned long addr)
return -1; return -1;
} }
#define outb(x, y) BUG() static inline void outb(unsigned char x, unsigned long port)
#define outw(x, y) BUG() {
#define outl(x, y) BUG() BUG();
}
static inline void outw(unsigned short x, unsigned long port)
{
BUG();
}
static inline void outl(unsigned int x, unsigned long port)
{
BUG();
}
#define inb_p(addr) inb(addr) #define inb_p(addr) inb(addr)
#define inw_p(addr) inw(addr) #define inw_p(addr) inw(addr)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册