Commit:     04a395233089ed160ef87a6c2155e5dedc6f7d15
Parent:     00db779bfe66b9039a6f34b77fe6184820958362
Author:     Russ Cox <[EMAIL PROTECTED]>
AuthorDate: Mon Mar 26 11:23:56 2007 -0400
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Mar 26 14:23:52 2007 -0700

    [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
    Signed-off-by: Russ Cox <[EMAIL PROTECTED]>
    Signed-off-by: Josh Triplett <[EMAIL PROTECTED]>
    Acked-by: Christopher Li <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 include/linux/compiler.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index aca6698..3b6949b 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -15,8 +15,8 @@
 # define __acquire(x)  __context__(x,1)
 # define __release(x)  __context__(x,-1)
 # define __cond_lock(x,c)      ((c) ? ({ __acquire(x); 1; }) : 0)
-extern void __chk_user_ptr(void __user *);
-extern void __chk_io_ptr(void __iomem *);
+extern void __chk_user_ptr(const void __user *);
+extern void __chk_io_ptr(const void __iomem *);
 # define __user
 # define __kernel
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to