Skip to content

Commit 91a7703

Browse files
committed
io_uring: remove duplicate io_uring_alloc_task_context() definition
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 <[email protected]>
1 parent 89465d9 commit 91a7703

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

io_uring/io_uring.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ struct llist_node *io_handle_tw_list(struct llist_node *node, unsigned int *coun
9898
struct llist_node *tctx_task_work_run(struct io_uring_task *tctx, unsigned int max_entries, unsigned int *count);
9999
void tctx_task_work(struct callback_head *cb);
100100
__cold void io_uring_cancel_generic(bool cancel_all, struct io_sq_data *sqd);
101-
int io_uring_alloc_task_context(struct task_struct *task,
102-
struct io_ring_ctx *ctx);
103101

104102
int io_ring_add_registered_file(struct io_uring_task *tctx, struct file *file,
105103
int start, int end);

io_uring/sqpoll.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <uapi/linux/io_uring.h>
1717

1818
#include "io_uring.h"
19+
#include "tctx.h"
1920
#include "napi.h"
2021
#include "sqpoll.h"
2122

0 commit comments

Comments
 (0)