[MIPS] Fixes for uaccess.h with gcc >= 4.0.1
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Tue, 14 Feb 2006 06:57:50 +0000 (15:57 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 21 Feb 2006 16:58:22 +0000 (16:58 +0000)
commit8ecbbcaf08c13c57d6602472478739d64650ee0e
treec59cf7f91e45bf95f7e9b85f43d524f3cf627505
parent36ccf1c0e3917f1f73abc17c38ad704c59f8d1b6
[MIPS] Fixes for uaccess.h with gcc >= 4.0.1

It seems current get_user() incorrectly sign-extend an unsigned int
value on 64bit kernel.  I think this is because '(__typeof__(val))'
cast in final assignment.  I suppose the cast should be
'(__typeof__(*(addr))'.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/uaccess.h