You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
video: fbdev: controlfb: Fix COMPILE_TEST build
[ Upstream commit567e44fb51] If PPC_BOOK3S, PPC_PMAC and PPC32 is n, COMPILE_TEST build fails: drivers/video/fbdev/controlfb.c:70:0: error: "pgprot_cached_wthru" redefined [-Werror] #define pgprot_cached_wthru(prot) (prot) In file included from ./arch/powerpc/include/asm/pgtable.h:20:0, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from drivers/video/fbdev/controlfb.c:37: ./arch/powerpc/include/asm/nohash/pgtable.h:243:0: note: this is the location of the previous definition #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ Fixes:a07a63b0e2("video: fbdev: controlfb: add COMPILE_TEST support") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ec1c20b02a
commit
0dff86aeb1
@@ -67,7 +67,9 @@
|
||||
#define out_8(addr, val) (void)(val)
|
||||
#define in_le32(addr) 0
|
||||
#define out_le32(addr, val) (void)(val)
|
||||
#ifndef pgprot_cached_wthru
|
||||
#define pgprot_cached_wthru(prot) (prot)
|
||||
#endif
|
||||
#else
|
||||
static void invalid_vram_cache(void __force *addr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user