]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/rw: compile out compat param passing
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 24 Feb 2025 12:42:21 +0000 (12:42 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 Feb 2025 14:34:21 +0000 (07:34 -0700)
commit82d187d356dcc257ecaa659e57e6c0546ec1cd2d
treeb3b0b0c2bcb4e83b924189098bd2e3a9465dec3a
parent0bba6fccbdcb28d284debc31150f84ef14f7e252
io_uring/rw: compile out compat param passing

Even when COMPAT is compiled out, we still have to pass
ctx->compat to __import_iovec(). Replace the read with an indirection
with a constant when the kernel doesn't support compat.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Link: https://lore.kernel.org/r/2819df9c8533c36b46d7baccbb317a0ec89da6cd.1740400452.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rw.c