Thread (30 messages) 30 messages, 11 authors, 24d ago

Re: [RFC PATCH v1 2/9] uaccess: Convert INLINE_COPY_{TO/FROM}_USER to kconfig and reduce ifdefery

From: Andrew Cooper <hidden>
Date: 2026-04-27 20:39:46
Also in: bpf, dmaengine, dri-devel, intel-gfx, kvm, linux-alpha, linux-arch, linux-efi, linux-fsdevel, linux-m68k, linux-media, linux-mips, linux-mm, linux-riscv, linux-s390, linux-serial, linux-sh, linux-sound, linux-spi, linux-staging, linux-um, linux-usb, linux-wireless, linuxppc-dev, lkml, loongarch, netdev, ocfs2-devel, rust-for-linux, sparclinux, xen-devel

On 27/04/2026 7:39 pm, Yury Norov wrote:
On Mon, Apr 27, 2026 at 07:13:43PM +0200, Christophe Leroy (CS GROUP) wrote:
quoted
Among the 21 architectures supported by the kernel, 16 define both
INLINE_COPY_TO_USER and INLINE_COPY_FROM_USER while the 5 other ones
don't define any of the two.

To simplify and reduce risk of mistakes, convert them to a single
kconfig item named CONFIG_ARCH_WANTS_NOINLINE_COPY which will be
We've got a special word for it: outline. Can you name it
CONFIG_OUTLINE_USERCOPY, or similar?
You can't swap the "in" for "out" like this.  "out of line" is the
opposite of "inline" in this context, while "outline" means something
different and unrelated.

~Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help