[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <51CBA43F.9050000@asianux.com>
Date: Thu, 27 Jun 2013 10:32:31 +0800
From: Chen Gang <gang.chen@...anux.com>
To: Hirokazu Takata <takata@...ux-m32r.org>
CC: linux-m32r@...linux-m32r.org, linux-m32r-ja@...linux-m32r.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Linux-Arch <linux-arch@...r.kernel.org>
Subject: [PATCH] arch: m32r: include: asm: add generic ioremap_wc() definition
Add generic ioremap_wc() definition, or compiling failed.
The related error (with allmodconfig):
drivers/gpu/drm/drm_bufs.c: In function ‘drm_addmap_core’:
drivers/gpu/drm/drm_bufs.c:219:5: error: implicit declaration of function ‘ioremap_wc’ [-Werror=implicit-function-declaration]
drivers/gpu/drm/drm_bufs.c:219:17: warning: assignment makes pointer from integer without a cast [enabled by default]
Signed-off-by: Chen Gang <gang.chen@...anux.com>
---
arch/m32r/include/asm/io.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/m32r/include/asm/io.h b/arch/m32r/include/asm/io.h
index 4010f1f..f9f4fb6 100644
--- a/arch/m32r/include/asm/io.h
+++ b/arch/m32r/include/asm/io.h
@@ -67,6 +67,7 @@ static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
extern void iounmap(volatile void __iomem *addr);
#define ioremap_nocache(off,size) ioremap(off,size)
+#define ioremap_wc ioremap_nocache
/*
* IO bus memory addresses are also 1:1 with the physical address
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists