diff options
| author | Caleb Sander Mateos <csander@purestorage.com> | 2025-11-25 17:59:34 -0700 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-26 09:37:10 -0700 |
| commit | 1e93de9205b4d5c0f06507e9e1c398574a07fb80 (patch) | |
| tree | 03f42a447edbb8c525e88af1ce952b3168bc6ec4 /io_uring/query.c | |
| parent | 84692a1519b32d61ff882cf24a9eda900961acad (diff) | |
| download | linux-1e93de9205b4d5c0f06507e9e1c398574a07fb80.tar.gz linux-1e93de9205b4d5c0f06507e9e1c398574a07fb80.tar.bz2 linux-1e93de9205b4d5c0f06507e9e1c398574a07fb80.zip | |
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/query.c')
| -rw-r--r-- | io_uring/query.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/io_uring/query.c b/io_uring/query.c index e61b6221f87f..abdd6f3e1223 100644 --- a/io_uring/query.c +++ b/io_uring/query.c @@ -53,8 +53,7 @@ static ssize_t io_query_scq(union io_query_data *data) return sizeof(*e); } -static int io_handle_query_entry(struct io_ring_ctx *ctx, - union io_query_data *data, void __user *uhdr, +static int io_handle_query_entry(union io_query_data *data, void __user *uhdr, u64 *next_entry) { struct io_uring_query_hdr hdr; @@ -107,7 +106,7 @@ out: return 0; } -int io_query(struct io_ring_ctx *ctx, void __user *arg, unsigned nr_args) +int io_query(void __user *arg, unsigned nr_args) { union io_query_data entry_buffer; void __user *uhdr = arg; @@ -121,7 +120,7 @@ int io_query(struct io_ring_ctx *ctx, void __user *arg, unsigned nr_args) while (uhdr) { u64 next_hdr; - ret = io_handle_query_entry(ctx, &entry_buffer, uhdr, &next_hdr); + ret = io_handle_query_entry(&entry_buffer, uhdr, &next_hdr); if (ret) return ret; uhdr = u64_to_user_ptr(next_hdr); |
