LKML Archive on
help / color / mirror / Atom feed
* [PATCH] ARC: export clear_user_page() for modules
@ 2021-08-16 21:05 Randy Dunlap
  2021-08-16 22:00 ` Vineet Gupta
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2021-08-16 21:05 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, kernel test robot, Guenter Roeck, Vineet Gupta,

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: Vineet Gupta <>
 arch/arc/mm/cache.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20210816.orig/arch/arc/mm/cache.c
+++ linux-next-20210816/arch/arc/mm/cache.c
@@ -1041,7 +1041,7 @@ void clear_user_page(void *to, unsigned
 	clear_bit(PG_dc_clean, &page->flags);
  * Explicit Cache flush request from user space via syscall

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-16 22:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16 21:05 [PATCH] ARC: export clear_user_page() for modules Randy Dunlap
2021-08-16 22:00 ` Vineet Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).