[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20080603190237.GA9517@c2.user-mode-linux.org>
Date: Tue, 3 Jun 2008 15:02:37 -0400
From: Jeff Dike <jdike@...toit.com>
To: Andrew Morton <akpm@...l.org>, LKML <linux-kernel@...r.kernel.org>,
uml-devel <user-mode-linux-devel@...ts.sourceforge.net>
Cc: Gabriel C <nix.or.die@...glemail.com>
Subject: [PATCH 4/6] 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 <nix.or.die@...glemail.com>
Signed-off-by: Jeff Dike <jdike@...ux.intel.com>
---
arch/um/sys-x86_64/ksyms.c | 4 ++++
1 file changed, 4 insertions(+)
Index: linux-2.6-git/arch/um/sys-x86_64/ksyms.c
===================================================================
--- linux-2.6-git.orig/arch/um/sys-x86_64/ksyms.c 2008-05-28 12:32:34.000000000 -0400
+++ linux-2.6-git/arch/um/sys-x86_64/ksyms.c 2008-06-02 15:49:43.000000000 -0400
@@ -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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists