From: Stefan Metzmacher Date: Mon, 15 Mar 2021 11:56:57 +0000 (+0100) Subject: io_uring: use typesafe pointers in io_uring_task X-Git-Tag: microblaze-v5.14~238^2~36 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=ee53fb2b197b72b126ca0387ae636da75d969428;p=linux-2.6-microblaze.git io_uring: use typesafe pointers in io_uring_task Signed-off-by: Stefan Metzmacher Link: https://lore.kernel.org/r/ce2a598e66e48347bb04afbaf2acc67c0cc7971a.1615809009.git.metze@samba.org Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index 52ba8d7f3eb8..675073966760 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -460,8 +460,8 @@ struct io_uring_task { /* submission side */ struct xarray xa; struct wait_queue_head wait; - void *last; - void *io_wq; + const struct io_ring_ctx *last; + struct io_wq *io_wq; struct percpu_counter inflight; atomic_t in_idle; bool sqpoll;