Skip to content

Commit 9a1563d

Browse files
isilenceaxboe
authored andcommitted
io_uring: remove unused wq_list_merge
There are no users of wq_list_merge, kill it. Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/5f9ad0301949213230ad9000a8359d591aae615a.1677002255.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]>
1 parent 48ba083 commit 9a1563d

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

io_uring/slist.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,6 @@ static inline void wq_list_add_after(struct io_wq_work_node *node,
2727
list->last = node;
2828
}
2929

30-
/**
31-
* wq_list_merge - merge the second list to the first one.
32-
* @list0: the first list
33-
* @list1: the second list
34-
* Return the first node after mergence.
35-
*/
36-
static inline struct io_wq_work_node *wq_list_merge(struct io_wq_work_list *list0,
37-
struct io_wq_work_list *list1)
38-
{
39-
struct io_wq_work_node *ret;
40-
41-
if (!list0->first) {
42-
ret = list1->first;
43-
} else {
44-
ret = list0->first;
45-
list0->last->next = list1->first;
46-
}
47-
INIT_WQ_LIST(list0);
48-
INIT_WQ_LIST(list1);
49-
return ret;
50-
}
51-
5230
static inline void wq_list_add_tail(struct io_wq_work_node *node,
5331
struct io_wq_work_list *list)
5432
{

0 commit comments

Comments
 (0)