powerpc/lib: remove memcpy_flushcache redundant return

Align it with other architectures and none of the callers has
been interested its return

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1556278590-14727-1-git-send-email-lirongqing@baidu.com
This commit is contained in:
Li RongQing 2019-04-26 19:36:30 +08:00 committed by Michael Ellerman
parent e54e30bca4
commit e280261897
2 changed files with 2 additions and 4 deletions

View File

@ -28,7 +28,7 @@ extern void * memcpy(void *,const void *,__kernel_size_t);
extern void * memmove(void *,const void *,__kernel_size_t);
extern int memcmp(const void *,const void *,__kernel_size_t);
extern void * memchr(const void *,int,__kernel_size_t);
extern void * memcpy_flushcache(void *,const void *,__kernel_size_t);
void memcpy_flushcache(void *dest, const void *src, size_t size);
void *__memset(void *s, int c, __kernel_size_t count);
void *__memcpy(void *to, const void *from, __kernel_size_t n);

View File

@ -76,14 +76,12 @@ long __copy_from_user_flushcache(void *dest, const void __user *src,
return copied;
}
void *memcpy_flushcache(void *dest, const void *src, size_t size)
void memcpy_flushcache(void *dest, const void *src, size_t size)
{
unsigned long start = (unsigned long) dest;
memcpy(dest, src, size);
clean_pmem_range(start, start + size);
return dest;
}
EXPORT_SYMBOL(memcpy_flushcache);