All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
To: linux-block@vger.kernel.org
Cc: axboe@kernel.dk, Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Subject: [PATCH] io_uring: fix compilation warning
Date: Mon, 11 Nov 2019 11:02:28 -0800	[thread overview]
Message-ID: <1573498948-27573-1-git-send-email-chaitanya.kulkarni@wdc.com> (raw)

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

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


             reply	other threads:[~2019-11-11 20:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-11 19:02 Chaitanya Kulkarni [this message]
2019-11-11 21:42 ` [PATCH] io_uring: fix compilation warning Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1573498948-27573-1-git-send-email-chaitanya.kulkarni@wdc.com \
    --to=chaitanya.kulkarni@wdc.com \
    --cc=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.