提交 ecb7524c 编写于 作者: A Al Viro 提交者: Linus Torvalds

[PATCH] kill bogus casts in amd64 uaccess.h

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 7ccec1b9
......@@ -373,12 +373,12 @@ extern long __copy_user_nocache(void *dst, const void __user *src, unsigned size
static inline int __copy_from_user_nocache(void *dst, const void __user *src, unsigned size)
{
might_sleep();
return __copy_user_nocache(dst, (__force void *)src, size, 1);
return __copy_user_nocache(dst, src, size, 1);
}
static inline int __copy_from_user_inatomic_nocache(void *dst, const void __user *src, unsigned size)
{
return __copy_user_nocache(dst, (__force void *)src, size, 0);
return __copy_user_nocache(dst, src, size, 0);
}
#endif /* __X86_64_UACCESS_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册