staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / arch / arm64 / mm / copypage.c
blob2ee7b73433a580fdcc7e2152d70b0a31d19fddb3
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Based on arch/arm/mm/copypage.c
5 * Copyright (C) 2002 Deep Blue Solutions Ltd, All Rights Reserved.
6 * Copyright (C) 2012 ARM Ltd.
7 */
9 #include <linux/mm.h>
11 #include <asm/page.h>
12 #include <asm/cacheflush.h>
14 void __cpu_copy_user_page(void *kto, const void *kfrom, unsigned long vaddr)
16 struct page *page = virt_to_page(kto);
17 copy_page(kto, kfrom);
18 flush_dcache_page(page);
20 EXPORT_SYMBOL_GPL(__cpu_copy_user_page);
22 void __cpu_clear_user_page(void *kaddr, unsigned long vaddr)
24 clear_page(kaddr);
26 EXPORT_SYMBOL_GPL(__cpu_clear_user_page);