Allow the put_user() function macro to put constant values by using the

existing __put_user() macro.

MFC after:	1 week
Submitted by:	Johannes Lundberg <johalun0@gmail.com>
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2018-02-17 21:47:15 +00:00
parent 2460cbb4a6
commit 314d034088

View File

@ -58,7 +58,7 @@
linux_copyout(&(__x), (_p), sizeof(*(_p))); \
})
#define get_user(_x, _p) linux_copyin((_p), &(_x), sizeof(*(_p)))
#define put_user(_x, _p) linux_copyout(&(_x), (_p), sizeof(*(_p)))
#define put_user(_x, _p) __put_user(_x, _p)
#define clear_user(...) linux_clear_user(__VA_ARGS__)
#define access_ok(...) linux_access_ok(__VA_ARGS__)