mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 20:56:23 +00:00
[PATCH] kill bogus casts in amd64 uaccess.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7ccec1b94e
commit
ecb7524c5d
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue