io_uring: kill unused forward decls
Kill unused forward declarations for io_ring_file_put() and io_queue_next(). Also btw rename the first one. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/64aa27c3f9662e14615cc119189f5eaf12989671.1617287883.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
4751f53d74
commit
47e90392c8
|
@ -1027,14 +1027,12 @@ static void io_uring_try_cancel_requests(struct io_ring_ctx *ctx,
|
|||
struct files_struct *files);
|
||||
static void io_uring_cancel_sqpoll(struct io_ring_ctx *ctx);
|
||||
static struct io_rsrc_node *io_rsrc_node_alloc(struct io_ring_ctx *ctx);
|
||||
static void io_ring_file_put(struct io_ring_ctx *ctx, struct io_rsrc_put *prsrc);
|
||||
|
||||
static void io_cqring_fill_event(struct io_kiocb *req, long res);
|
||||
static void io_put_req(struct io_kiocb *req);
|
||||
static void io_put_req_deferred(struct io_kiocb *req, int nr);
|
||||
static void io_dismantle_req(struct io_kiocb *req);
|
||||
static void io_put_task(struct task_struct *task, int nr);
|
||||
static void io_queue_next(struct io_kiocb *req);
|
||||
static struct io_kiocb *io_prep_linked_timeout(struct io_kiocb *req);
|
||||
static void io_queue_linked_timeout(struct io_kiocb *req);
|
||||
static int __io_sqe_files_update(struct io_ring_ctx *ctx,
|
||||
|
@ -7459,7 +7457,7 @@ static int io_sqe_alloc_file_tables(struct io_rsrc_data *file_data,
|
|||
return 1;
|
||||
}
|
||||
|
||||
static void io_ring_file_put(struct io_ring_ctx *ctx, struct io_rsrc_put *prsrc)
|
||||
static void io_rsrc_file_put(struct io_ring_ctx *ctx, struct io_rsrc_put *prsrc)
|
||||
{
|
||||
struct file *file = prsrc->file;
|
||||
#if defined(CONFIG_UNIX)
|
||||
|
@ -7621,7 +7619,7 @@ static int io_sqe_files_register(struct io_ring_ctx *ctx, void __user *arg,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
file_data = io_rsrc_data_alloc(ctx, io_ring_file_put);
|
||||
file_data = io_rsrc_data_alloc(ctx, io_rsrc_file_put);
|
||||
if (!file_data)
|
||||
return -ENOMEM;
|
||||
ctx->file_data = file_data;
|
||||
|
|
Loading…
Reference in New Issue