Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm: uaccess: Remove memcpy_page_flushcache()

Commit 21b56c847753 ("iov_iter: get rid of separate bvec and xarray
callbacks") removed the calls to memcpy_page_flushcache().

Remove the unnecessary memcpy_page_flushcache() call.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: "Dan Williams" <dan.j.williams@intel.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20221230-kmap-x86-v1-3-15f1ecccab50@intel.com
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Ira Weiny and committed by
Will Deacon
7cae569e bfa7965b

-8
-2
arch/arm64/include/asm/uaccess.h
··· 449 449 extern __must_check long strnlen_user(const char __user *str, long n); 450 450 451 451 #ifdef CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE 452 - struct page; 453 - void memcpy_page_flushcache(char *to, struct page *page, size_t offset, size_t len); 454 452 extern unsigned long __must_check __copy_user_flushcache(void *to, const void __user *from, unsigned long n); 455 453 456 454 static inline int __copy_from_user_flushcache(void *dst, const void __user *src, unsigned size)
-6
arch/arm64/lib/uaccess_flushcache.c
··· 19 19 } 20 20 EXPORT_SYMBOL_GPL(memcpy_flushcache); 21 21 22 - void memcpy_page_flushcache(char *to, struct page *page, size_t offset, 23 - size_t len) 24 - { 25 - memcpy_flushcache(to, page_address(page) + offset, len); 26 - } 27 - 28 22 unsigned long __copy_user_flushcache(void *to, const void __user *from, 29 23 unsigned long n) 30 24 {