提交 b885808e 编写于 作者: A Andi Kleen 提交者: Andi Kleen

[PATCH] Add proper sparse __user casts to __copy_to_user_inatomic

Noticed by Al Viro

Cc: viro@ftp.linux.org.uk
Signed-off-by: NAndi Kleen <ak@suse.de>
上级 ae853e79
......@@ -361,6 +361,11 @@ __must_check unsigned long clear_user(void __user *mem, unsigned long len);
__must_check unsigned long __clear_user(void __user *mem, unsigned long len);
__must_check long __copy_from_user_inatomic(void *dst, const void __user *src, unsigned size);
#define __copy_to_user_inatomic copy_user_generic
static __must_check __always_inline int
__copy_to_user_inatomic(void __user *dst, const void *src, unsigned size)
{
return copy_user_generic((__force void *)dst, src, size);
}
#endif /* __X86_64_UACCESS_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册