projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40fb16a
)
uml: memcpy export needs to follow host declaration
author
Jeff Dike
<
[email protected]
>
Fri, 6 Jun 2008 05:46:13 +0000
(22:46 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 6 Jun 2008 18:29:10 +0000
(11:29 -0700)
x86_64 defines either memcpy or __memcpy depending on the gcc version, and
it looks like UML needs to follow that in its exporting.
Cc: Gabriel C <
[email protected]
>
Signed-off-by: Jeff Dike <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/um/sys-x86_64/ksyms.c
patch
|
blob
|
history
diff --git
a/arch/um/sys-x86_64/ksyms.c
b/arch/um/sys-x86_64/ksyms.c
index 6604673a849d2d248fea6d87b8d39a4e9e4f1735..1db2fce009484b9d78ad11565e5663a866725ee5 100644
(file)
--- a/
arch/um/sys-x86_64/ksyms.c
+++ b/
arch/um/sys-x86_64/ksyms.c
@@
-3,5
+3,9
@@
#include <asm/checksum.h>
/*XXX: we need them because they would be exported by x86_64 */
+#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) || __GNUC__ > 4
+EXPORT_SYMBOL(memcpy);
+#else
EXPORT_SYMBOL(__memcpy);
+#endif
EXPORT_SYMBOL(csum_partial);