From f5d4c1084fa8930b7f2a846278526019f03fade2 Mon Sep 17 00:00:00 2001 From: Corey Minyard Date: Mon, 9 Jul 2012 15:35:20 -0500 Subject: [PATCH] --- yaml --- r: 311854 b: refs/heads/master c: 44033109e99cf584d6285226ed521098f5ef7250 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/sh/include/asm/io_noioport.h | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 4fed5834a3b8..da7696f419a3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 64941d8930e619ef37227f88c6ee17e2624c65d2 +refs/heads/master: 44033109e99cf584d6285226ed521098f5ef7250 diff --git a/trunk/arch/sh/include/asm/io_noioport.h b/trunk/arch/sh/include/asm/io_noioport.h index e136d28d1d2e..4d48f1436a63 100644 --- a/trunk/arch/sh/include/asm/io_noioport.h +++ b/trunk/arch/sh/include/asm/io_noioport.h @@ -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)