Skip to content

Commit 7cae569

Browse files
weiny2willdeacon
authored andcommitted
arm: uaccess: Remove memcpy_page_flushcache()
Commit 21b56c8 ("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 <[email protected]> Cc: "Dan Williams" <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] Signed-off-by: Ira Weiny <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent bfa7965 commit 7cae569

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

arch/arm64/include/asm/uaccess.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,6 @@ extern long strncpy_from_user(char *dest, const char __user *src, long count);
449449
extern __must_check long strnlen_user(const char __user *str, long n);
450450

451451
#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);
454452
extern unsigned long __must_check __copy_user_flushcache(void *to, const void __user *from, unsigned long n);
455453

456454
static inline int __copy_from_user_flushcache(void *dst, const void __user *src, unsigned size)

arch/arm64/lib/uaccess_flushcache.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ void memcpy_flushcache(void *dst, const void *src, size_t cnt)
1919
}
2020
EXPORT_SYMBOL_GPL(memcpy_flushcache);
2121

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-
2822
unsigned long __copy_user_flushcache(void *to, const void __user *from,
2923
unsigned long n)
3024
{

0 commit comments

Comments
 (0)