]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
io_uring: remove duplicate io_uring_alloc_task_context() definition
authorJens Axboe <axboe@kernel.dk>
Tue, 17 Jun 2025 12:41:48 +0000 (06:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 17 Jun 2025 12:41:48 +0000 (06:41 -0600)
This function exists in both tctx.h (where it belongs) and in io_uring.h
as a remnant of before the tctx handling code got split out. Remove the
io_uring.h definition and ensure that sqpoll.c includes the tctx.h
header to get the definition.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.h
io_uring/sqpoll.c

index d59c12277d58ce35d072529697faec7dc7e7dd76..66c1ca73f55ee56139986246236fc43574316f1c 100644 (file)
@@ -98,8 +98,6 @@ struct llist_node *io_handle_tw_list(struct llist_node *node, unsigned int *coun
 struct llist_node *tctx_task_work_run(struct io_uring_task *tctx, unsigned int max_entries, unsigned int *count);
 void tctx_task_work(struct callback_head *cb);
 __cold void io_uring_cancel_generic(bool cancel_all, struct io_sq_data *sqd);
-int io_uring_alloc_task_context(struct task_struct *task,
-                               struct io_ring_ctx *ctx);
 
 int io_ring_add_registered_file(struct io_uring_task *tctx, struct file *file,
                                     int start, int end);
index 268d2fbe6160c25b668940f482e5086e45727192..fa5a6750ee524257e0d7cb525588d6c89cc9e5a2 100644 (file)
@@ -16,6 +16,7 @@
 #include <uapi/linux/io_uring.h>
 
 #include "io_uring.h"
+#include "tctx.h"
 #include "napi.h"
 #include "sqpoll.h"