From: Randy Dunlap Date: Mon, 16 Aug 2021 21:05:33 +0000 (-0700) Subject: ARC: export clear_user_page() for modules X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2dcd759ab0f6ab33fbfad471fac1d138339c532d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ARC: export clear_user_page() for modules [ Upstream commit 6b5ff0405e4190f23780362ea324b250bc495683 ] 0day bot reports a build error: ERROR: modpost: "clear_user_page" [drivers/media/v4l2-core/videobuf-dma-sg.ko] undefined! so export it in arch/arc/ to fix the build error. In most ARCHes, clear_user_page() is a macro. OTOH, in a few ARCHes it is a function and needs to be exported. PowerPC exported it in 2004. It looks like nds32 and nios2 still need to have it exported. Fixes: 4102b53392d63 ("ARC: [mm] Aliasing VIPT dcache support 2/4") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Guenter Roeck Cc: linux-snps-arc@lists.infradead.org Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin --- diff --git a/arch/arc/mm/cache.c b/arch/arc/mm/cache.c index d14499500106..bf02efbee5e1 100644 --- a/arch/arc/mm/cache.c +++ b/arch/arc/mm/cache.c @@ -1118,7 +1118,7 @@ void clear_user_page(void *to, unsigned long u_vaddr, struct page *page) clear_page(to); clear_bit(PG_dc_clean, &page->flags); } - +EXPORT_SYMBOL(clear_user_page); /********************************************************************** * Explicit Cache flush request from user space via syscall