atheros: add config and patches for 2.6.31 (untested), includes patch from #5847
[openwrt.git] / target / linux / uml / patches / 003-memcpy_x86_64_fix.patch
1 --- a/arch/um/os-Linux/user_syms.c
2 +++ b/arch/um/os-Linux/user_syms.c
3 @@ -23,10 +23,8 @@ extern int printf(const char *, ...);
4 EXPORT_SYMBOL(strstr);
5 #endif
6
7 -#ifndef __x86_64__
8 extern void *memcpy(void *, const void *, size_t);
9 EXPORT_SYMBOL(memcpy);
10 -#endif
11
12 EXPORT_SYMBOL(memmove);
13 EXPORT_SYMBOL(memset);
14 --- a/arch/um/sys-x86_64/ksyms.c
15 +++ b/arch/um/sys-x86_64/ksyms.c
16 @@ -2,10 +2,5 @@
17 #include <asm/string.h>
18 #include <asm/checksum.h>
19
20 -/*XXX: we need them because they would be exported by x86_64 */
21 -#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) || __GNUC__ > 4
22 -EXPORT_SYMBOL(memcpy);
23 -#else
24 EXPORT_SYMBOL(__memcpy);
25 -#endif
26 EXPORT_SYMBOL(csum_partial);
This page took 0.040142 seconds and 5 git commands to generate.