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
This commit is contained in:
Jean-Sébastien Pédron
2026-04-30 00:14:59 +02:00
parent 796fff59a5
commit 713b4ce8ef
@@ -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_ */