]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Add const to pointer qualifiers for __chk_user_ptr and __chk_io_ptr.
authorRuss Cox <rsc@swtch.com>
Mon, 26 Mar 2007 15:23:56 +0000 (11:23 -0400)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 26 Mar 2007 21:23:52 +0000 (14:23 -0700)
commit13bf8af5357ebda5168fb5feac9183c6d6d78f84
treebef0b7fc8d245c9cb5299aaa151beb66f74c75b3
parent5b89b8bb026fba6120064776d1a9be789f51dee4
[PATCH] Add const to pointer qualifiers for __chk_user_ptr and __chk_io_ptr.

Change prototypes for __chk_user_ptr and __chk_io_ptr to take const
void* instead of void*, so that code can pass "const void *" to them.

(Right now sparse does not warn about passing const void* to void*
functions, but that is a separate bug that I believe Josh is working on,
and once sparse does check this, the changed prototypes will be
necessary.)

Signed-off-by: Russ Cox <rsc@swtch.com>
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Acked-by: Christopher Li <sparse@chrisli.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/compiler.h