]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] s390: const pointer uaccess
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 7 Nov 2005 08:59:11 +0000 (00:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 7 Nov 2005 15:53:34 +0000 (07:53 -0800)
commit18d3871229b9569041ccf283865f7d1cab85f6f6
treea0c5f4cf585833262e959d5d0c8be91ebb3932e0
parenta0292466620ca72ec68271974af579378e3617a3
[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