linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Pavel Begunkov <asml.silence@gmail.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Jens Axboe <axboe@kernel.dk>
Subject: [linux-next:master 5290/6929] fs/io_uring.c:2330:40: error: variable 'prev' set but not used
Date: Sat, 9 Oct 2021 02:52:50 +0800	[thread overview]
Message-ID: <202110090236.8mjPHUCb-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3094 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   683f29b781aeaab6bf302eeb2ef08a5e5f9d8a27
commit: 6d1766f116bfdd85382e077f597c1e55cc70f0d0 [5290/6929] io_uring: use slist for completion batching
config: nios2-buildonly-randconfig-r003-20211008 (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=6d1766f116bfdd85382e077f597c1e55cc70f0d0
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 6d1766f116bfdd85382e077f597c1e55cc70f0d0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   fs/io_uring.c: In function 'io_queue_async_work':
   fs/io_uring.c:1455:61: error: parameter 'locked' set but not used [-Werror=unused-but-set-parameter]
    1455 | static void io_queue_async_work(struct io_kiocb *req, bool *locked)
         |                                                       ~~~~~~^~~~~~
   fs/io_uring.c: In function '__io_submit_flush_completions':
>> fs/io_uring.c:2330:40: error: variable 'prev' set but not used [-Werror=unused-but-set-variable]
    2330 |         struct io_wq_work_node *node, *prev;
         |                                        ^~~~
   cc1: all warnings being treated as errors


vim +/prev +2330 fs/io_uring.c

  2326	
  2327	static void __io_submit_flush_completions(struct io_ring_ctx *ctx)
  2328		__must_hold(&ctx->uring_lock)
  2329	{
> 2330		struct io_wq_work_node *node, *prev;
  2331		struct io_submit_state *state = &ctx->submit_state;
  2332		struct req_batch rb;
  2333	
  2334		spin_lock(&ctx->completion_lock);
  2335		wq_list_for_each(node, prev, &state->compl_reqs) {
  2336			struct io_kiocb *req = container_of(node, struct io_kiocb,
  2337							    comp_list);
  2338	
  2339			__io_cqring_fill_event(ctx, req->user_data, req->result,
  2340						req->compl.cflags);
  2341		}
  2342		io_commit_cqring(ctx);
  2343		spin_unlock(&ctx->completion_lock);
  2344		io_cqring_ev_posted(ctx);
  2345	
  2346		io_init_req_batch(&rb);
  2347		node = state->compl_reqs.first;
  2348		do {
  2349			struct io_kiocb *req = container_of(node, struct io_kiocb,
  2350							    comp_list);
  2351	
  2352			node = req->comp_list.next;
  2353			if (req_ref_put_and_test(req))
  2354				io_req_free_batch(&rb, req, &ctx->submit_state);
  2355		} while (node);
  2356	
  2357		io_req_free_batch_finish(ctx, &rb);
  2358		INIT_WQ_LIST(&state->compl_reqs);
  2359	}
  2360	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31774 bytes --]

                 reply	other threads:[~2021-10-08 18:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202110090236.8mjPHUCb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=asml.silence@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).