lkml.org 
[lkml]   [2008]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 10/15] uaccess_mvcos: #ifdef config dependent code.
    From: Heiko Carstens <heiko.carstens@de.ibm.com>

    arch/s390/lib/uaccess_mvcos.c:166:
    warning: 'strnlen_user_mvcos' defined but not used
    arch/s390/lib/uaccess_mvcos.c:186:
    warning: 'strncpy_from_user_mvcos' defined but not used

    Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
    ---

    arch/s390/lib/uaccess_mvcos.c | 2 ++
    1 file changed, 2 insertions(+)

    Index: quilt-2.6/arch/s390/lib/uaccess_mvcos.c
    ===================================================================
    --- quilt-2.6.orig/arch/s390/lib/uaccess_mvcos.c
    +++ quilt-2.6/arch/s390/lib/uaccess_mvcos.c
    @@ -162,6 +162,7 @@ static size_t clear_user_mvcos(size_t si
    return size;
    }

    +#ifdef CONFIG_S390_SWITCH_AMODE
    static size_t strnlen_user_mvcos(size_t count, const char __user *src)
    {
    char buf[256];
    @@ -199,6 +200,7 @@ static size_t strncpy_from_user_mvcos(si
    } while ((len_str == len) && (done < count));
    return done;
    }
    +#endif /* CONFIG_S390_SWITCH_AMODE */

    struct uaccess_ops uaccess_mvcos = {
    .copy_from_user = copy_from_user_mvcos_check,
    --
    blue skies,
    Martin.

    "Reality continues to ruin my life." - Calvin.



    \
     
     \ /
      Last update: 2008-04-29 16:25    [W:5.849 / U:0.276 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site