From: Arnd Bergmann <arnd@xxxxxxxx> This symbol is now used on the kasan test module, so it needs to be exported. ERROR: modpost: "copy_to_kernel_nofault" [mm/kasan/kasan_test.ko] undefined! Fixes: 44749130ffb4 ("kasan: migrate copy_user_test to kunit") Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> --- mm/maccess.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/maccess.c b/mm/maccess.c index 3ca55ec63a6a..8f0906180a94 100644 --- a/mm/maccess.c +++ b/mm/maccess.c @@ -82,6 +82,7 @@ long copy_to_kernel_nofault(void *dst, const void *src, size_t size) pagefault_enable(); return -EFAULT; } +EXPORT_SYMBOL_GPL(copy_to_kernel_nofault); long strncpy_from_kernel_nofault(char *dst, const void *unsafe_addr, long count) { -- 2.39.5