uaccess-minimize-inline_copy_user-related-ifdefery.patch removed from -mm tree
The quilt patch titled
Subject: uaccess: minimize INLINE_COPY_USER-related ifdefery
has been removed from the -mm tree. Its filename was
uaccess-minimize-inline_copy_user-related-ifdefery.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Yury Norov <[email protected]>
Subject: uaccess: minimize INLINE_COPY_USER-related ifdefery
Date: Fri, 24 Apr 2026 22:08:57 -0400
Now that we've got the same config selecting inline vs outline copy_to_user() and copy_from_user(), we can simplify the corresponding logic in the uaccess.h.
Fixes 1f9a8286bc0c ("uaccess: always export _copy_[from|to]_user with CONFIG_RUST")
Signed-off-by Yury Norov <[email protected]>
Tested-by Alice Ryhl <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Christophe Leroy (CS GROUP) <[email protected]>
Cc Mathieu Desnoyers <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Randy Dunlap <[email protected]>
Cc Viktor Malik <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/uaccess.h | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-)
include/linux/uaccess.h renamed from include/linux/uaccess.h~uaccess-minimize-inline_copy_user-related-ifdefery +7 -14
@@ -190,10 +190,6 @@ fail:memset (to + (n - res),0 , res);return res; } -#ifndef INLINE_COPY_USER -extern __must_check unsigned long -_copy_from_user (void *,const void __user *,unsigned long ); -#endif static inline __must_check unsigned long _inline_copy_to_user (void __user *to,const void *from,unsigned long n)
@@ -207,7 +203,13 @@ _inline_copy_to_user(void __user *to, co }return n; } -#ifndef INLINE_COPY_USER +#ifdef INLINE_COPY_USER +# define _copy_to_user _inline_copy_to_user +# define _copy_from_user _inline_copy_from_user +#else +extern __must_check unsigned long +_copy_from_user (void *,const void __user *,unsigned long ); +extern __must_check unsigned long _copy_to_user (void __user *,const void *,unsigned long );#endif
@@ -217,11 +219,7 @@ copy_from_user(void *to, const void __us {if (!check_copy_size (to, n, false))return n; -#ifdef INLINE_COPY_USER -return _inline_copy_from_user (to, from, n); -#else return _copy_from_user (to, from, n); -#endif } static __always_inline unsigned long __must_check
@@ -229,12 +227,7 @@ copy_to_user(void __user *to, const void {if (!check_copy_size (from, n, true))return n; - -#ifdef INLINE_COPY_USER -return _inline_copy_to_user (to, from, n); -#else return _copy_to_user (to, from, n); -#endif }#ifndef copy_mc_to_kernel
_
Patches currently in -mm which might be from [email protected] are