mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 07:46:24 +07:00
ia64: get rid of copy_in_user()
it hadn't been biarch for years Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
7bb8a503e8
commit
652c1aaca2
@ -276,16 +276,6 @@ copy_from_user(void *to, const void __user *from, unsigned long n)
|
||||
return n;
|
||||
}
|
||||
|
||||
#define __copy_in_user(to, from, size) __copy_user((to), (from), (size))
|
||||
|
||||
static inline unsigned long
|
||||
copy_in_user (void __user *to, const void __user *from, unsigned long n)
|
||||
{
|
||||
if (likely(access_ok(VERIFY_READ, from, n) && access_ok(VERIFY_WRITE, to, n)))
|
||||
n = __copy_user(to, from, n);
|
||||
return n;
|
||||
}
|
||||
|
||||
extern unsigned long __do_clear_user (void __user *, unsigned long);
|
||||
|
||||
#define __clear_user(to, n) __do_clear_user(to, n)
|
||||
|
Loading…
Reference in New Issue
Block a user