This patch fixes following compilation warning :- fs/io_uring.c: In function ‘io_uring_cancel_files’: fs/io_uring.c:4280:25: warning: unused variable ‘cancel_req’ [-Wunused-variable] struct io_kiocb *req, *cancel_req; ^~~~~~~~~~ Fixes: 93ef402a2272 ("io_uring: don't do flush cancel under inflight_lock") Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx> --- fs/io_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 283c1ba..55f3dfe 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -4277,7 +4277,7 @@ static int io_uring_release(struct inode *inode, struct file *file) static void io_uring_cancel_files(struct io_ring_ctx *ctx, struct files_struct *files) { - struct io_kiocb *req, *cancel_req; + struct io_kiocb *req; DEFINE_WAIT(wait); while (!list_empty_careful(&ctx->inflight_list)) { -- 1.8.3.1