Skip to contentSkip to conversation

sh: Provide prototypes for PCI I/O mapping in asm/io.h

PATCH New Mark Brown 1 participant 1 message Sep 12, 2018 SuperH

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 sh: Provide prototypes for PCI I/O mapping in asm/io.h

Most architectures provide prototypes for the PCI I/O mapping operations when asm/io.h is included but SH doesn't currently do that, leading to for example warnings in sound/pci/hda/patch_ca0132.c when pci_iomap() is used on current -next. Make SH more consistent with other architectures by including asm-generic/pci_iomap.h in asm/io.h.

---
 arch/sh/include/asm/io.h | 1 +
 1 file changed, 1 insertion(+)
arch/sh/include/asm/io.h +1 -0
index 98cb8c802b1a..4f7f235f15f8 100644
@@ -24,6 +24,7 @@
 #define __IO_PREFIX     generic
 #include <asm/io_generic.h>
 #include <asm/io_trapped.h>
+#include <asm-generic/pci_iomap.h>
 #include <mach/mangle-port.h>
 
 #define __raw_writeb(v,a)	(__chk_io_ptr(a), *(volatile u8  __force *)(a) = (v))
Signature · 1 line
2.19.0.rc2