diff options
author | hselasky <hselasky@FreeBSD.org> | 2016-05-23 12:52:22 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2016-05-23 12:52:22 +0000 |
commit | caddc9e5bb3518d08d5bb13cf9916e7225e729c3 (patch) | |
tree | d58e9138d4623dcda2ff9eca4676ca0334b3105f | |
parent | e155a36ec0418be0b8147484b0644e5e50ab7d25 (diff) | |
download | FreeBSD-src-caddc9e5bb3518d08d5bb13cf9916e7225e729c3.zip FreeBSD-src-caddc9e5bb3518d08d5bb13cf9916e7225e729c3.tar.gz |
Define more copy to/from userspace functions in the LinuxKPI.
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
-rw-r--r-- | sys/compat/linuxkpi/common/include/asm/uaccess.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/asm/uaccess.h b/sys/compat/linuxkpi/common/include/asm/uaccess.h index f3e743f..8f0f5eb 100644 --- a/sys/compat/linuxkpi/common/include/asm/uaccess.h +++ b/sys/compat/linuxkpi/common/include/asm/uaccess.h @@ -40,6 +40,7 @@ copy_to_user(void *to, const void *from, unsigned long n) return n; return 0; } +#define __copy_to_user(...) copy_to_user(__VA_ARGS__) static inline long 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 0; } +#define __copy_from_user(...) copy_from_user(__VA_ARGS__) +#define __copy_in_user(...) copy_from_user(__VA_ARGS__) #endif /* _ASM_UACCESS_H_ */ |