[PATCH] s390: const pointer uaccess
commit1047aa7723997620ba03a21429d2c5d923ebf48f
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 7 Nov 2005 08:59:11 +0000 (7 00:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 7 Nov 2005 15:53:34 +0000 (7 07:53 -0800)
treea0c5f4cf585833262e959d5d0c8be91ebb3932e0
parentcdb32dc90bd38503befd1f4d0b762a1ace09bb28
[PATCH] s390: const pointer uaccess

Using __typeof__(*ptr) on a pointer to const makes the __x variable in
__get_user const as well.  The latest gcc will refuse to write to it.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-s390/uaccess.h