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:
parent
e54e30bca4
commit
e280261897
|
@ -28,7 +28,7 @@ extern void * memcpy(void *,const void *,__kernel_size_t);
|
||||||
extern void * memmove(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 int memcmp(const void *,const void *,__kernel_size_t);
|
||||||
extern void * memchr(const void *,int,__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 *__memset(void *s, int c, __kernel_size_t count);
|
||||||
void *__memcpy(void *to, const void *from, __kernel_size_t n);
|
void *__memcpy(void *to, const void *from, __kernel_size_t n);
|
||||||
|
|
|
@ -76,14 +76,12 @@ long __copy_from_user_flushcache(void *dest, const void __user *src,
|
||||||
return copied;
|
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;
|
unsigned long start = (unsigned long) dest;
|
||||||
|
|
||||||
memcpy(dest, src, size);
|
memcpy(dest, src, size);
|
||||||
clean_pmem_range(start, start + size);
|
clean_pmem_range(start, start + size);
|
||||||
|
|
||||||
return dest;
|
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(memcpy_flushcache);
|
EXPORT_SYMBOL(memcpy_flushcache);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue