Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <linux@roeck-us.net>
Acked-by: Ley Foon Tan <lftan@altera.com>

authored by

Guenter Roeck and committed by
Ley Foon Tan
76367a52 603ba7e4

+2
+2
arch/nios2/include/asm/io.h
··· 45 45 __iounmap(addr); 46 46 } 47 47 48 + #define ioremap_wc ioremap_nocache 49 + 48 50 /* Pages to physical address... */ 49 51 #define page_to_phys(page) virt_to_phys(page_to_virt(page)) 50 52 #define page_to_bus(page) page_to_virt(page)