Skip to content

Commit

Permalink
SH: Convert out[bwl] macros to inline functions
Browse files Browse the repository at this point in the history
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: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Corey Minyard authored and Paul Mundt committed Jul 12, 2012
1 parent 64941d8 commit 4403310
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions arch/sh/include/asm/io_noioport.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,20 @@ static inline u32 inl(unsigned long addr)
return -1;
}

#define outb(x, y) BUG()
#define outw(x, y) BUG()
#define outl(x, y) BUG()
static inline void outb(unsigned char x, unsigned long port)
{
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 inw_p(addr) inw(addr)
Expand Down

0 comments on commit 4403310

Please sign in to comment.