Skip to contentSkip to conversation

h8300: include: asm: add default 'ioremap_wc' definition in "io.h"

PATCH New Chen Gang 1 participant 1 message Aug 30, 2013

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 h8300: include: asm: add default 'ioremap_wc' definition in "io.h"

h8300 does not implement ioremap_wc(), but implement ioremap(), need define ioremap_wc() just like "asm-generic/io.h" to pass compiling.

The related error (allmodconfig for h8300):

drivers/video/uvesafb.c: In function 'uvesafb_ioremap':
drivers/video/uvesafb.c:1563:2: error: implicit declaration of function 'ioremap_wc' [-Werror=implicit-function-declaration]

---
 arch/h8300/include/asm/io.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
arch/h8300/include/asm/io.h +8 -0
index c1a8df2..0bf4577 100644
@@ -262,6 +262,14 @@ static inline void *ioremap_fullcache(unsigned long physaddr, unsigned long size
 	return __ioremap(physaddr, size, IOMAP_FULL_CACHING);
 }
 
+#ifndef ioremap_nocache
+#define ioremap_nocache ioremap
+#endif
+
+#ifndef ioremap_wc
+#define ioremap_wc ioremap_nocache
+#endif
+
 extern void iounmap(void *addr);
 
 /* H8/300 internal I/O functions */
Signature · 1 line
1.7.7.6