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: firefly_0821_release~20044 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8bfd04b974689f700bbd053ad6e66b0a95fb80c9;p=firefly-linux-kernel-4.4.55.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 6604673a849d..1db2fce00948 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);