diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2022-02-15 11:04:40 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2022-02-17 08:30:55 +0000 |
commit | 4f689b302fc49fc11d19169386f6ccfad05f47dd (patch) | |
tree | c1c12093635ef9c3f3707183f6098bb069f7e91d /sys/compat/linuxkpi/common/include/asm/uaccess.h | |
parent | bf7deecfe7604c394d0c89ca58ce5d22b0d5641c (diff) | |
download | src-4f689b302fc49fc11d19169386f6ccfad05f47dd.tar.gz src-4f689b302fc49fc11d19169386f6ccfad05f47dd.zip |
linuxkpi: Add user_write_access_*
Needed by drm-kmod v5.8
Reviewed by: bz
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D34284
Diffstat (limited to 'sys/compat/linuxkpi/common/include/asm/uaccess.h')
-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 6994b48d071e..b3b2cb53d22a 100644 --- a/sys/compat/linuxkpi/common/include/asm/uaccess.h +++ b/sys/compat/linuxkpi/common/include/asm/uaccess.h @@ -55,6 +55,9 @@ copy_from_user(void *to, const void *from, unsigned long n) #define user_access_begin(ptr, len) access_ok(ptr, len) #define user_access_end() do { } while (0) +#define user_write_access_begin(ptr, len) access_ok(ptr, len) +#define user_write_access_end() do { } while (0) + #define unsafe_get_user(x, ptr, err) do { \ if (unlikely(__get_user(x, ptr))) \ goto err; \ |