Skip to content

Commit bec7ced

Browse files
mosalterctmarinas
authored andcommitted
arm64: export __cpu_{clear,copy}_user_page functions
The __cpu_clear_user_page() and __cpu_copy_user_page() functions are not currently exported. This prevents modules from using clear_user_page() and copy_user_page(). Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent cd3de83 commit bec7ced

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm64/mm/copypage.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ void __cpu_copy_user_page(void *kto, const void *kfrom, unsigned long vaddr)
2727
copy_page(kto, kfrom);
2828
__flush_dcache_area(kto, PAGE_SIZE);
2929
}
30+
EXPORT_SYMBOL_GPL(__cpu_copy_user_page);
3031

3132
void __cpu_clear_user_page(void *kaddr, unsigned long vaddr)
3233
{
3334
clear_page(kaddr);
3435
}
36+
EXPORT_SYMBOL_GPL(__cpu_clear_user_page);

0 commit comments

Comments
 (0)