]> git.ipfire.org Git - thirdparty/linux.git/commit
uaccess: minimize INLINE_COPY_USER-related ifdefery
authorYury Norov <ynorov@nvidia.com>
Sat, 25 Apr 2026 02:08:57 +0000 (22:08 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 May 2026 04:24:45 +0000 (21:24 -0700)
commitbd99fcfc6219ebe36ae4d0bf5333b5ecc17b53df
tree34673b16efc23aaa0c545706c61fa6de27dd3c19
parentc02be2ad2b88c67c5d7c06b6aa7083b5b40e1077
uaccess: minimize INLINE_COPY_USER-related ifdefery

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.

Link: https://lore.kernel.org/20260425020857.356850-4-ynorov@nvidia.com
Fixes: 1f9a8286bc0c ("uaccess: always export _copy_[from|to]_user with CONFIG_RUST")
Signed-off-by: Yury Norov <ynorov@nvidia.com>
Tested-by: Alice Ryhl <aliceryhl@google.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Viktor Malik <vmalik@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/uaccess.h