[ARM] Fix get_user when passed a const pointer
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Fri, 18 Nov 2005 14:22:03 +0000 (14:22 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 18 Nov 2005 14:22:03 +0000 (14:22 +0000)
commitd2c5b69099ff747f9757da2416383b9a999171b1
tree6ff0b0da32d5afed46328754901ef2d912bdfa79
parent02b30839220fa3ef80a34ed6ee174fa2d9937eac
[ARM] Fix get_user when passed a const pointer

Unfortunately, later gcc versions error out when our get_user is passed
a const pointer, since we write to a temporary variable declared as
typeof(*(p)) which propagates the const-ness.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/armksyms.c
arch/arm/lib/getuser.S
include/asm-arm/uaccess.h