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

powerpc: 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.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20221230-kmap-x86-v1-2-15f1ecccab50@intel.com

authored by

Ira Weiny and committed by
Michael Ellerman
0398abca 3a713753

-9
-2
arch/powerpc/include/asm/uaccess.h
··· 361 361 362 362 extern long __copy_from_user_flushcache(void *dst, const void __user *src, 363 363 unsigned size); 364 - extern void memcpy_page_flushcache(char *to, struct page *page, size_t offset, 365 - size_t len); 366 364 367 365 static __must_check inline bool user_access_begin(const void __user *ptr, size_t len) 368 366 {
-7
arch/powerpc/lib/pmem.c
··· 85 85 clean_pmem_range(start, start + size); 86 86 } 87 87 EXPORT_SYMBOL(memcpy_flushcache); 88 - 89 - void memcpy_page_flushcache(char *to, struct page *page, size_t offset, 90 - size_t len) 91 - { 92 - memcpy_flushcache(to, page_to_virt(page) + offset, len); 93 - } 94 - EXPORT_SYMBOL(memcpy_page_flushcache);