From: Jeff Dike Date: Fri, 6 Jun 2008 05:46:13 +0000 (-0700) Subject: uml: memcpy export needs to follow host declaration X-Git-Tag: v2.6.26-rc6~72 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8bfd04b974689f700bbd053ad6e66b0a95fb80c9;p=linux-2.6-omap-h63xx.git uml: memcpy export needs to follow host declaration 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 Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/sys-x86_64/ksyms.c b/arch/um/sys-x86_64/ksyms.c index 6604673a849..1db2fce0094 100644 --- a/arch/um/sys-x86_64/ksyms.c +++ b/arch/um/sys-x86_64/ksyms.c @@ -3,5 +3,9 @@ #include /*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);