* [PATCH] UML: x86_64: fix memcpy export
@ 2010-05-02 23:58 Nicolas Thill
2010-05-17 14:42 ` [uml-devel] " Paolo Giarrusso
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Thill @ 2010-05-02 23:58 UTC (permalink / raw)
To: Jeff Dike; +Cc: user-mode-linux-devel, linux-kernel, Nicolas Thill
./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@openwrt.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [uml-devel] [PATCH] UML: x86_64: fix memcpy export
2010-05-02 23:58 [PATCH] UML: x86_64: fix memcpy export Nicolas Thill
@ 2010-05-17 14:42 ` Paolo Giarrusso
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Giarrusso @ 2010-05-17 14:42 UTC (permalink / raw)
To: Nicolas Thill
Cc: Jeff Dike, Nicolas Thill, linux-kernel, user-mode-linux-devel
Shouldn't this thing be in arch/um/sys-i386/ksyms.c, instead of having #ifndef?
On Mon, May 3, 2010 at 01:58, Nicolas Thill <nicolas.thill@gmail.com> wrote:
> ./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@openwrt.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
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> User-mode-linux-devel mailing list
> User-mode-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
>
--
Paolo Giarrusso
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-17 14:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-02 23:58 [PATCH] UML: x86_64: fix memcpy export Nicolas Thill
2010-05-17 14:42 ` [uml-devel] " Paolo Giarrusso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox