aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/uaccess.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/uaccess.h')
-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,
36 long ret; \ 36 long ret; \
37 \ 37 \
38 inc_preempt_count(); \ 38 inc_preempt_count(); \
39 ret = __get_user(retval, addr); \ 39 ret = __get_user(retval, (__force typeof(*addr) __user *)addr);\
40 dec_preempt_count(); \ 40 dec_preempt_count(); \
41 ret; \ 41 ret; \
42 }) 42 })