Skip to contentSkip to conversation

arch: avr32: include: asm: add generic ioremap_wc() definition in "io.h"

PATCH In review Chen Gang 2 participants 2 messages Feb 16, 2014 – Feb 17, 2014

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 arch: avr32: include: asm: add generic ioremap_wc() definition in "io.h"

Need generic ioremap_wc(), or can not pass compiling with allmodconfig, the related error:

CC [M] drivers/gpu/drm/drm_bufs.o
drivers/gpu/drm/drm_bufs.c: In function 'drm_addmap_core':
drivers/gpu/drm/drm_bufs.c:217: error: implicit declaration of function 'ioremap_wc' drivers/gpu/drm/drm_bufs.c:218: warning: assignment makes pointer from integer without a cast

---
 arch/avr32/include/asm/io.h | 2 ++
 1 file changed, 2 insertions(+)
arch/avr32/include/asm/io.h +2 -0
index fc6483f..4f5ec2b 100644
@@ -295,6 +295,8 @@ extern void __iounmap(void __iomem *addr);
 #define iounmap(addr)				\
 	__iounmap(addr)
 
+#define ioremap_wc ioremap_nocache
+
 #define cached(addr) P1SEGADDR(addr)
 #define uncached(addr) P2SEGADDR(addr)
 
Signature · 1 line
1.7.11.7
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Chen Gang

Need generic ioremap_wc(), or can not pass compiling with allmodconfig, the related error:

CC [M] drivers/gpu/drm/drm_bufs.o
drivers/gpu/drm/drm_bufs.c: In function 'drm_addmap_core':
drivers/gpu/drm/drm_bufs.c:217: error: implicit declaration of function 'ioremap_wc' drivers/gpu/drm/drm_bufs.c:218: warning: assignment makes pointer from integer without a cast

I guess this patch needs to go in before pulling in vga.h.

Quoted 2 lines
Quoted 17 lines
---
 arch/avr32/include/asm/io.h | 2 ++
 1 file changed, 2 insertions(+)
arch/avr32/include/asm/io.h +2 -0
index fc6483f..4f5ec2b 100644
@@ -295,6 +295,8 @@ extern void __iounmap(void __iomem *addr);
 #define iounmap(addr)				\
 	__iounmap(addr)
 
+#define ioremap_wc ioremap_nocache
+
 #define cached(addr) P1SEGADDR(addr)
 #define uncached(addr) P2SEGADDR(addr)
 
Signature · 2 lines
mvh
Hans-Christian Egtvedt