git: 8da614f980cb - stable/15 - linuxkpi: Add `copy_from_user_inatomic_nontemporal()` function
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 30 Apr 2026 19:42:52 UTC
The branch stable/15 has been updated by dumbbell:
URL: https://cgit.FreeBSD.org/src/commit/?id=8da614f980cb4bc52f4939c130571535bc7ac9c3
commit 8da614f980cb4bc52f4939c130571535bc7ac9c3
Author: Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2026-04-29 22:14:59 +0000
Commit: Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2026-04-30 18:07:13 +0000
linuxkpi: Add `copy_from_user_inatomic_nontemporal()` function
In Linux 7.1, `__copy_from_user_inatomic_nocache()` was renamed to
`copy_from_user_inatomic_nontemporal()`. This change was backported to
several LTS branches.
This includes Linux 6.12.x and the i915 DRM driver started to use it in
that version.
Reviewed by: bz
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 713b4ce8ef46d7df4ffe50ab6733bb128dbe3cbd)
---
sys/compat/linuxkpi/common/include/linux/uaccess.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/uaccess.h b/sys/compat/linuxkpi/common/include/linux/uaccess.h
index 660e84e6af3b..97fb2e3a7420 100644
--- a/sys/compat/linuxkpi/common/include/linux/uaccess.h
+++ b/sys/compat/linuxkpi/common/include/linux/uaccess.h
@@ -111,5 +111,12 @@ __copy_from_user_inatomic(void *to, const void __user *from,
}
#define __copy_from_user_inatomic_nocache(to, from, n) \
__copy_from_user_inatomic((to), (from), (n))
+/*
+ * __copy_from_user_inatomic_nocache() was renamed to
+ * copy_from_user_inatomic_nontemporal() in Linux 7.1. The change was
+ * backported to at least several LTS branches.
+ */
+#define copy_from_user_inatomic_nontemporal(to, from, n) \
+ __copy_from_user_inatomic((to), (from), (n))
#endif /* _LINUXKPI_LINUX_UACCESS_H_ */