Commit a9143296 authored by Andi Kleen's avatar Andi Kleen Committed by H. Peter Anvin

asmlinkage, x86: Fix 32bit memcpy for LTO

These functions can be called implicitely from gcc, and thus need to be
visible.
Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-11-git-send-email-ak@linux.intel.comSigned-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent a7330c99
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#undef memcpy #undef memcpy
#undef memset #undef memset
void *memcpy(void *to, const void *from, size_t n) __visible void *memcpy(void *to, const void *from, size_t n)
{ {
#ifdef CONFIG_X86_USE_3DNOW #ifdef CONFIG_X86_USE_3DNOW
return __memcpy3d(to, from, n); return __memcpy3d(to, from, n);
...@@ -14,13 +14,13 @@ void *memcpy(void *to, const void *from, size_t n) ...@@ -14,13 +14,13 @@ void *memcpy(void *to, const void *from, size_t n)
} }
EXPORT_SYMBOL(memcpy); EXPORT_SYMBOL(memcpy);
void *memset(void *s, int c, size_t count) __visible void *memset(void *s, int c, size_t count)
{ {
return __memset(s, c, count); return __memset(s, c, count);
} }
EXPORT_SYMBOL(memset); EXPORT_SYMBOL(memset);
void *memmove(void *dest, const void *src, size_t n) __visible void *memmove(void *dest, const void *src, size_t n)
{ {
int d0,d1,d2,d3,d4,d5; int d0,d1,d2,d3,d4,d5;
char *ret = dest; char *ret = dest;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment