Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2026 07:18:31 +0000
From:      Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 713b4ce8ef46 - main - linuxkpi: Add `copy_from_user_inatomic_nontemporal()` function
Message-ID:  <69f30247.347be.7ccf593c@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by dumbbell:

URL: https://cgit.FreeBSD.org/src/commit/?id=713b4ce8ef46d7df4ffe50ab6733bb128dbe3cbd

commit 713b4ce8ef46d7df4ffe50ab6733bb128dbe3cbd
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 07:05:02 +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
    Differential Revision: https://reviews.freebsd.org/D56719
---
 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_ */


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69f30247.347be.7ccf593c>