From: Guan Xuetao Date: Thu, 18 Aug 2011 07:38:05 +0000 (+0800) Subject: unicore32: add ioremap_nocache definition X-Git-Tag: v3.3-rc1~110^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a50e4213e71adc7dde0d514aabd8af7275fee39f;p=profile%2Fivi%2Fkernel-x86-ivi.git unicore32: add ioremap_nocache definition Bugfix for following error messages: lib/iomap.c: In function 'pci_iomap': lib/iomap.c:274: error: implicit declaration of function 'ioremap_nocache' lib/iomap.c:274: warning: return makes pointer from integer without a cast Also see commit it will hide the ioremap_nocache function for systems with an MMU Signed-off-by: Guan Xuetao Cc: Arnd Bergmann Cc: Jonas Bonn --- diff --git a/arch/unicore32/include/asm/io.h b/arch/unicore32/include/asm/io.h index a75ad0b..adddf6d 100644 --- a/arch/unicore32/include/asm/io.h +++ b/arch/unicore32/include/asm/io.h @@ -37,6 +37,7 @@ extern void __uc32_iounmap(volatile void __iomem *addr); */ #define ioremap(cookie, size) __uc32_ioremap(cookie, size) #define ioremap_cached(cookie, size) __uc32_ioremap_cached(cookie, size) +#define ioremap_nocache(cookie, size) __uc32_ioremap(cookie, size) #define iounmap(cookie) __uc32_iounmap(cookie) #define HAVE_ARCH_PIO_SIZE