Re: [PATCH 1/1] m68k: add missing I/O macros {in,out}{w,l}_p() for !CONFIG_ISA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sun, 3 Oct 2010, Thorsten Glaser wrote:

On m68k, I/O macros like inb() outw() etc. are only defined to something 
useful if CONFIG_ISA is set; dummies are in place if not, but four 
macros were missing from the !CONFIG_ISA case. Adding these makes some 
drivers, such as speakup, compile again. The patch was made against 
Debianâs linux-2.6_2.6.32-24, but

I was able to compile that source package. Can you please send the .config 
you used?

Finn

applies cleanly on linux-m68k master.

Signed-off-by: Thorsten Glaser <tg@xxxxxxxxxx>
---
 arch/m68k/include/asm/io_mm.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h
index 56a6555..be9d7da 100644
--- a/arch/m68k/include/asm/io_mm.h
+++ b/arch/m68k/include/asm/io_mm.h
@@ -387,9 +387,13 @@ static inline void isa_delay(void)
 #define outb(val,port)     ((void)0)
 #define outb_p(val,port)   ((void)0)
 #define inw(port)          0xffff
+#define inw_p(port)        0xffff
 #define outw(val,port)     ((void)0)
+#define outw_p(val,port)   ((void)0)
 #define inl(port)          0xffffffffUL
+#define inl_p(port)        0xffffffffUL
 #define outl(val,port)     ((void)0)
+#define outl_p(val,port)   ((void)0)
 
 #define insb(port,buf,nr)  ((void)0)
 #define outsb(port,buf,nr) ((void)0)

[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux