aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-12-07 02:14:05 +0100
committerAndi Kleen <andi@basil.nowhere.org>2006-12-07 02:14:05 +0100
commit2fff0a48416af891dce38fd425246e337831e0bb (patch)
treef38a3e194135043f9d0b142483350b21be351932 /include
parent5df0287ecc4f53e68bbd188fa8258b555e6b734f (diff)
[PATCH] Generic: Move __user cast into probe_kernel_address
Caller of probe_kernel_address shouldn't need to know that pka is internally implemented with __get_user. So move the __user cast into pka. Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/uaccess.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h
index a48d7f11c7b..65a68da8bd5 100644
--- a/include/linux/uaccess.h
+++ b/include/linux/uaccess.h
@@ -36,7 +36,7 @@ static inline unsigned long __copy_from_user_nocache(void *to,
long ret; \
\
inc_preempt_count(); \
- ret = __get_user(retval, addr); \
+ ret = __get_user(retval, (__force typeof(*addr) __user *)addr);\
dec_preempt_count(); \
ret; \
})