Date: Sat, 5 Mar 2022 11:34:18 GMT From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 8082bc8e570f - stable/13 - linuxkpi: Add user_write_access_* Message-ID: <202203051134.225BYI2D046545@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=8082bc8e570f2047ead88ebc2153050ffaedcd61 commit 8082bc8e570f2047ead88ebc2153050ffaedcd61 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2022-02-15 11:04:40 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-03-05 11:12:43 +0000 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 (cherry picked from commit 4f689b302fc49fc11d19169386f6ccfad05f47dd) --- sys/compat/linuxkpi/common/include/asm/uaccess.h | 3 +++ 1 file changed, 3 insertions(+) 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; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203051134.225BYI2D046545>