summaryrefslogtreecommitdiff
path: root/io_uring/register.c
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2025-11-25 17:59:34 -0700
committerJens Axboe <axboe@kernel.dk>2025-11-26 09:37:10 -0700
commit1e93de9205b4d5c0f06507e9e1c398574a07fb80 (patch)
tree03f42a447edbb8c525e88af1ce952b3168bc6ec4 /io_uring/register.c
parent84692a1519b32d61ff882cf24a9eda900961acad (diff)
io_uring/query: drop unused io_handle_query_entry() ctx arg
io_handle_query_entry() doesn't use its struct io_ring_ctx *ctx argument. So remove it from the function and its callers. Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/register.c')
-rw-r--r--io_uring/register.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/register.c b/io_uring/register.c
index db42f98562c4..62d39b3ff317 100644
--- a/io_uring/register.c
+++ b/io_uring/register.c
@@ -813,7 +813,7 @@ static int __io_uring_register(struct io_ring_ctx *ctx, unsigned opcode,
ret = io_register_mem_region(ctx, arg);
break;
case IORING_REGISTER_QUERY:
- ret = io_query(ctx, arg, nr_args);
+ ret = io_query(arg, nr_args);
break;
case IORING_REGISTER_ZCRX_CTRL:
ret = io_zcrx_ctrl(ctx, arg, nr_args);
@@ -888,7 +888,7 @@ static int io_uring_register_blind(unsigned int opcode, void __user *arg,
case IORING_REGISTER_SEND_MSG_RING:
return io_uring_register_send_msg_ring(arg, nr_args);
case IORING_REGISTER_QUERY:
- return io_query(NULL, arg, nr_args);
+ return io_query(arg, nr_args);
}
return -EINVAL;
}