]> err.no Git - linux-2.6/commit
[PATCH] uml: fix build warnings in __get_user
authorJeff Dike <jdike@addtoit.com>
Mon, 27 Mar 2006 09:14:27 +0000 (01:14 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:37 +0000 (08:44 -0800)
commitbb83da053319e81906473bec08e8f677d6ac615f
treeb5ee3445db891baf71e4ce358baca740043c0672
parentdbffa471611d3fc4b401ebabf7bb63ac0e0272b1
[PATCH] uml: fix build warnings in __get_user

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: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-um/uaccess.h