From: Guenter Roeck Date: Thu, 11 Dec 2014 02:36:42 +0000 (+0800) Subject: nios2: add definition of ioremap_wc to io.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=76367a52d3cbf78f254fee0479824014c8dfb4dc;p=linux.git 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. Signed-off-by: Guenter Roeck Acked-by: Ley Foon Tan --- diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h index 9102bfd3fa1c9..6e24d7cceb0c1 100644 --- a/arch/nios2/include/asm/io.h +++ b/arch/nios2/include/asm/io.h @@ -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)