• Jeff Dike's avatar
    [PATCH] uml: fix build warnings in __get_user · bb83da05
    Jeff Dike authored
    Fix a gcc warning about losing qualifiers to the first argument of
    copy_from_user.  The typeof change for correctness, and fixes a lot of the
    warnings, but there are some cases where x has some extra qualifiers, like
    volatile, which copy_from_user can't know about.  For these, the void * cast
    seems to be necessary.
    
    Also cleaned up some of the whitespace and got rid of the emacs comment at the
    bottom.
    Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
    Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    bb83da05
uaccess.h 2.4 KB