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

asmlinkage, x86: Fix 32bit memcpy for LTO

These functions can be called implicitely from gcc, and thus need to be
visible.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-11-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>

authored by

Andi Kleen and committed by
H. Peter Anvin
a9143296 a7330c99

+3 -3
+3 -3
arch/x86/lib/memcpy_32.c
··· 4 4 #undef memcpy 5 5 #undef memset 6 6 7 - void *memcpy(void *to, const void *from, size_t n) 7 + __visible void *memcpy(void *to, const void *from, size_t n) 8 8 { 9 9 #ifdef CONFIG_X86_USE_3DNOW 10 10 return __memcpy3d(to, from, n); ··· 14 14 } 15 15 EXPORT_SYMBOL(memcpy); 16 16 17 - void *memset(void *s, int c, size_t count) 17 + __visible void *memset(void *s, int c, size_t count) 18 18 { 19 19 return __memset(s, c, count); 20 20 } 21 21 EXPORT_SYMBOL(memset); 22 22 23 - void *memmove(void *dest, const void *src, size_t n) 23 + __visible void *memmove(void *dest, const void *src, size_t n) 24 24 { 25 25 int d0,d1,d2,d3,d4,d5; 26 26 char *ret = dest;