Define more copy to/from userspace functions in the LinuxKPI.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
c0c82715b8
commit
fb2faed84e
@ -40,6 +40,7 @@ copy_to_user(void *to, const void *from, unsigned long n)
|
|||||||
return n;
|
return n;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#define __copy_to_user(...) copy_to_user(__VA_ARGS__)
|
||||||
|
|
||||||
static inline long
|
static inline long
|
||||||
copy_from_user(void *to, const void *from, unsigned long n)
|
copy_from_user(void *to, const void *from, unsigned long n)
|
||||||
@ -48,5 +49,7 @@ copy_from_user(void *to, const void *from, unsigned long n)
|
|||||||
return n;
|
return n;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#define __copy_from_user(...) copy_from_user(__VA_ARGS__)
|
||||||
|
#define __copy_in_user(...) copy_from_user(__VA_ARGS__)
|
||||||
|
|
||||||
#endif /* _ASM_UACCESS_H_ */
|
#endif /* _ASM_UACCESS_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user