diff mbox series

io_uring: fix compilation warning

Message ID 1573498948-27573-1-git-send-email-chaitanya.kulkarni@wdc.com (mailing list archive)
State New, archived
Headers show
Series io_uring: fix compilation warning | expand

Commit Message

Chaitanya Kulkarni Nov. 11, 2019, 7:02 p.m. UTC
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@wdc.com>
---
 fs/io_uring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jens Axboe Nov. 11, 2019, 9:42 p.m. UTC | #1
On 11/11/19 11:02 AM, Chaitanya Kulkarni wrote:
> 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;
>                             ^~~~~~~~~~

Thanks, I folded in a similar fix last night though.
diff mbox series

Patch

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)) {