public inbox for [email protected]
 help / color / mirror / Atom feed
From: Chaitanya Kulkarni <[email protected]>
To: [email protected], [email protected]
Cc: [email protected],
	Chaitanya Kulkarni <[email protected]>
Subject: [PATCH] io-wq: remove unused label
Date: Wed, 24 Feb 2021 18:18:44 -0800	[thread overview]
Message-ID: <[email protected]> (raw)

Remove unused label so that we can get rid of the following warning:-

fs/io-wq.c: In function ‘io_get_next_work’:
fs/io-wq.c:357:1: warning: label ‘restart’ defined but not used
[-Wunused-label]
 restart:

Signed-off-by: Chaitanya Kulkarni <[email protected]>
---

Without this patch :-
# makej fs/
  DESCEND  objtool
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  CC      fs/io-wq.o
fs/io-wq.c: In function ‘io_get_next_work’:
fs/io-wq.c:357:1: warning: label ‘restart’ defined but not used [-Wunused-label]
 restart:
 ^~~~~~~
  AR      fs/built-in.a

With this patch :-

linux-block (for-next) # git am 0001-io-wq-remove-unused-label.patch
Applying: io-wq: remove unused label
linux-block (for-next) # makej fs/
  DESCEND  objtool
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  CC      fs/io-wq.o
  AR      fs/built-in.a

---
 fs/io-wq.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/io-wq.c b/fs/io-wq.c
index 42ce01183b51..169e1d6a7ee2 100644
--- a/fs/io-wq.c
+++ b/fs/io-wq.c
@@ -354,7 +354,6 @@ static struct io_wq_work *io_get_next_work(struct io_wqe *wqe)
 	struct io_wq_work *work, *tail;
 	unsigned int stall_hash = -1U;
 
-restart:
 	wq_list_for_each(node, prev, &wqe->work_list) {
 		unsigned int hash;
 
-- 
2.22.1


             reply	other threads:[~2021-02-25  2:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25  2:18 Chaitanya Kulkarni [this message]
2021-02-25 15:18 ` [PATCH] io-wq: remove unused label 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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox