[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1272844700-32496-1-git-send-email-nico@openwrt.org>
Date: Mon, 3 May 2010 01:58:20 +0200
From: Nicolas Thill <nicolas.thill@...il.com>
To: Jeff Dike <jdike@...toit.com>
Cc: user-mode-linux-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org, Nicolas Thill <nico@...nwrt.org>
Subject: [PATCH] UML: x86_64: fix memcpy export
./arch/um/sys-x86_64/ksyms.c exports memcpy or __memcpy depending on the gcc
version, use the same logic in ./arch/um/os-Linux/user_syms.c
Signed-off-by: Nicolas Thill <nico@...nwrt.org>
---
arch/um/os-Linux/user_syms.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/um/os-Linux/user_syms.c b/arch/um/os-Linux/user_syms.c
index 89b48a1..e3a12dd 100644
--- a/arch/um/os-Linux/user_syms.c
+++ b/arch/um/os-Linux/user_syms.c
@@ -23,7 +23,8 @@ extern int printf(const char *, ...);
EXPORT_SYMBOL(strstr);
#endif
-#ifndef __x86_64__
+#if !defined(__x86_64) || \
+ (__GNUC__ == 4 && __GNUC_MINOR__ < 3) || (__GNUC__ < 4)
extern void *memcpy(void *, const void *, size_t);
EXPORT_SYMBOL(memcpy);
#endif
--
1.6.0.4
--
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