Skip to content
Commit 04a39523 authored by Russ Cox's avatar Russ Cox Committed by Linus Torvalds
Browse files

[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: default avatarRuss Cox <rsc@swtch.com>
Signed-off-by: default avatarJosh Triplett <josh@freedesktop.org>
Acked-by: default avatarChristopher Li <sparse@chrisli.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 00db779b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment