X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=io_uring%2Fslist.h;h=0eb194817242e5eb98e83077a195209a053e4eab;hb=57d88e8a5974644039fbc47806bac7bb12025636;hp=7c198a40d5f11d799e49441aefc9034cc71169f5;hpb=2667e3673f7079cf95d58cf84d7c0b5a455ac68b;p=linux-block.git diff --git a/io_uring/slist.h b/io_uring/slist.h index 7c198a40d5f1..0eb194817242 100644 --- a/io_uring/slist.h +++ b/io_uring/slist.h @@ -3,6 +3,9 @@ #include +#define __wq_list_for_each(pos, head) \ + for (pos = (head)->first; pos; pos = (pos)->next) + #define wq_list_for_each(pos, prv, head) \ for (pos = (head)->first, prv = NULL; pos; prv = pos, pos = (pos)->next) @@ -113,4 +116,4 @@ static inline struct io_wq_work *wq_next_work(struct io_wq_work *work) return container_of(work->list.next, struct io_wq_work, list); } -#endif // INTERNAL_IO_SLIST_H \ No newline at end of file +#endif // INTERNAL_IO_SLIST_H