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:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user