aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-04-29 22:14:59 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-04-30 07:05:02 +0000
commit713b4ce8ef46d7df4ffe50ab6733bb128dbe3cbd (patch)
tree8e9ae1a12ba57ae86074911eee2b75c24515a3cb
parent796fff59a5d32bc3be14feaeb228fc15ef43eb32 (diff)
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 Differential Revision: https://reviews.freebsd.org/D56719
-rw-r--r--sys/compat/linuxkpi/common/include/linux/uaccess.h7
1 files changed, 7 insertions, 0 deletions
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_ */