* [PATCH] arch: avr32: include: asm: add generic ioremap_wc() definition in "io.h"
@ 2014-02-16 11:39 Chen Gang
2014-02-17 9:53 ` Hans-Christian Egtvedt
0 siblings, 1 reply; 2+ messages in thread
From: Chen Gang @ 2014-02-16 11:39 UTC (permalink / raw)
To: Håvard Skinnemoen, Hans-Christian Egtvedt
Cc: Andrew Morton, havard, josh.wu, linux-kernel@vger.kernel.org
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
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
arch/avr32/include/asm/io.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/avr32/include/asm/io.h b/arch/avr32/include/asm/io.h
index fc6483f..4f5ec2b 100644
--- a/arch/avr32/include/asm/io.h
+++ b/arch/avr32/include/asm/io.h
@@ -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)
--
1.7.11.7
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] arch: avr32: include: asm: add generic ioremap_wc() definition in "io.h"
2014-02-16 11:39 [PATCH] arch: avr32: include: asm: add generic ioremap_wc() definition in "io.h" Chen Gang
@ 2014-02-17 9:53 ` Hans-Christian Egtvedt
0 siblings, 0 replies; 2+ messages in thread
From: Hans-Christian Egtvedt @ 2014-02-17 9:53 UTC (permalink / raw)
To: Chen Gang
Cc: Håvard Skinnemoen, Andrew Morton, havard, josh.wu,
linux-kernel@vger.kernel.org
Around Sun 16 Feb 2014 19:39:30 +0800 or thereabout, Chen Gang wrote:
> 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.
>
> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
> ---
> arch/avr32/include/asm/io.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/avr32/include/asm/io.h b/arch/avr32/include/asm/io.h
> index fc6483f..4f5ec2b 100644
> --- a/arch/avr32/include/asm/io.h
> +++ b/arch/avr32/include/asm/io.h
> @@ -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)
>
--
mvh
Hans-Christian Egtvedt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-17 9:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-16 11:39 [PATCH] arch: avr32: include: asm: add generic ioremap_wc() definition in "io.h" Chen Gang
2014-02-17 9:53 ` Hans-Christian Egtvedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox