All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [PATCH 4/6] UML - memcpy export needs to follow host declaration
@ 2008-06-03 19:02 ` Jeff Dike
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2008-06-03 19:02 UTC (permalink / raw)
  To: Andrew Morton, LKML, uml-devel; +Cc: Gabriel C

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@googlemail.com>
Signed-off-by: Jeff Dike <jdike@linux.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);

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 4/6] UML - memcpy export needs to follow host declaration
@ 2008-06-03 19:02 ` Jeff Dike
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2008-06-03 19:02 UTC (permalink / raw)
  To: Andrew Morton, LKML, uml-devel; +Cc: Gabriel C

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@googlemail.com>
Signed-off-by: Jeff Dike <jdike@linux.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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-03 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-03 19:02 [uml-devel] [PATCH 4/6] UML - memcpy export needs to follow host declaration Jeff Dike
2008-06-03 19:02 ` Jeff Dike

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.