Skip to contentSkip to conversation

nios2: add definition of ioremap_wc to io.h

PATCH Applied Guenter Roeck 2 participants 2 messages Dec 10, 2014 – Dec 12, 2014 NIOS2 architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nios2: add definition of ioremap_wc to io.h

Fix

drivers/gpu/drm/drm_bufs.c: In function 'drm_addmap_core':
drivers/gpu/drm/drm_bufs.c:213:5:
error: implicit declaration of function 'ioremap_wc'

seen when building nios2:allmodconfig.

---
 arch/nios2/include/asm/io.h | 2 ++
 1 file changed, 2 insertions(+)
arch/nios2/include/asm/io.h +2 -0
index 9102bfd..6e24d7c 100644
@@ -45,6 +45,8 @@ static inline void iounmap(void __iomem *addr)
 	__iounmap(addr);
 }
 
+#define ioremap_wc ioremap_nocache
+
 /* Pages to physical address... */
 #define page_to_phys(page)	virt_to_phys(page_to_virt(page))
 #define page_to_bus(page)	page_to_virt(page)
Signature · 1 line
1.9.1
Applied
#1 lore raw
Quoted 10 lines · Guenter Roeck

Fix

drivers/gpu/drm/drm_bufs.c: In function 'drm_addmap_core':
drivers/gpu/drm/drm_bufs.c:213:5:
error: implicit declaration of function 'ioremap_wc'

seen when building nios2:allmodconfig.

---

Applied.

Thanks.