Skip to content

Commit

Permalink
io_uring: remove unused wq_list_merge
Browse files Browse the repository at this point in the history
There are no users of wq_list_merge, kill it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/5f9ad0301949213230ad9000a8359d591aae615a.1677002255.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Pavel Begunkov authored and Jens Axboe committed Feb 22, 2023
1 parent 48ba083 commit 9a1563d
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions io_uring/slist.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,6 @@ static inline void wq_list_add_after(struct io_wq_work_node *node,
list->last = node;
}

/**
* wq_list_merge - merge the second list to the first one.
* @list0: the first list
* @list1: the second list
* Return the first node after mergence.
*/
static inline struct io_wq_work_node *wq_list_merge(struct io_wq_work_list *list0,
struct io_wq_work_list *list1)
{
struct io_wq_work_node *ret;

if (!list0->first) {
ret = list1->first;
} else {
ret = list0->first;
list0->last->next = list1->first;
}
INIT_WQ_LIST(list0);
INIT_WQ_LIST(list1);
return ret;
}

static inline void wq_list_add_tail(struct io_wq_work_node *node,
struct io_wq_work_list *list)
{
Expand Down

0 comments on commit 9a1563d

Please sign in to comment.