lkml.org 
[lkml]   [2010]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] UML: x86_64: fix memcpy export
    Date
    ./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


    \
     
     \ /
      Last update: 2010-05-03 02:01    [W:0.018 / U:1.408 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site