public inbox for [email protected]
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Jens Axboe <[email protected]>
Cc: [email protected], Ammar Faizi <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>,
	[email protected], Sasha Levin <[email protected]>
Subject: [ammarfaizi2-block:stable/linux-stable-rc/queue/5.19 294/1034] io_uring/io_uring.c:3150:40: warning: variable 'prev' set but not used
Date: Sun, 14 Aug 2022 09:54:10 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

tree:   https://github.com/ammarfaizi2/linux-block stable/linux-stable-rc/queue/5.19
head:   a93eab25d54766b1d89d7fa7dd315b3fc268d0b5
commit: a1fd6af4b362b4f8ed0d7f5a78f0e8ff2f15d70f [294/1034] io_uring: move to separate directory
config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220814/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/ammarfaizi2/linux-block/commit/a1fd6af4b362b4f8ed0d7f5a78f0e8ff2f15d70f
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block stable/linux-stable-rc/queue/5.19
        git checkout a1fd6af4b362b4f8ed0d7f5a78f0e8ff2f15d70f
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

   io_uring/io_uring.c: In function '__io_submit_flush_completions':
>> io_uring/io_uring.c:3150:40: warning: variable 'prev' set but not used [-Wunused-but-set-variable]
    3150 |         struct io_wq_work_node *node, *prev;
         |                                        ^~~~


vim +/prev +3150 io_uring/io_uring.c

7a743e225b2a9da fs/io_uring.c Pavel Begunkov 2020-03-03  3146  
c450178d9be9dc4 fs/io_uring.c Pavel Begunkov 2021-09-08  3147  static void __io_submit_flush_completions(struct io_ring_ctx *ctx)
a141dd896f544df fs/io_uring.c Jens Axboe     2021-08-12  3148  	__must_hold(&ctx->uring_lock)
905c172f32c56f0 fs/io_uring.c Pavel Begunkov 2021-02-10  3149  {
6f33b0bc4ea43f5 fs/io_uring.c Pavel Begunkov 2021-09-24 @3150  	struct io_wq_work_node *node, *prev;
cd0ca2e048dc0dd fs/io_uring.c Pavel Begunkov 2021-08-09  3151  	struct io_submit_state *state = &ctx->submit_state;
905c172f32c56f0 fs/io_uring.c Pavel Begunkov 2021-02-10  3152  
3d4aeb9f98058c3 fs/io_uring.c Pavel Begunkov 2021-11-10  3153  	if (state->flush_cqes) {
79ebeaee8a21a00 fs/io_uring.c Jens Axboe     2021-08-10  3154  		spin_lock(&ctx->completion_lock);
6f33b0bc4ea43f5 fs/io_uring.c Pavel Begunkov 2021-09-24  3155  		wq_list_for_each(node, prev, &state->compl_reqs) {
6f33b0bc4ea43f5 fs/io_uring.c Pavel Begunkov 2021-09-24  3156  			struct io_kiocb *req = container_of(node, struct io_kiocb,
6f33b0bc4ea43f5 fs/io_uring.c Pavel Begunkov 2021-09-24  3157  						    comp_list);
5182ed2e332e8e1 fs/io_uring.c Pavel Begunkov 2021-06-26  3158  
f43de1f88841d59 fs/io_uring.c Pavel Begunkov 2022-06-15  3159  			if (!(req->flags & REQ_F_CQE_SKIP))
91ef75a7db0d085 fs/io_uring.c Pavel Begunkov 2022-06-15  3160  				__io_fill_cqe_req(ctx, req);
905c172f32c56f0 fs/io_uring.c Pavel Begunkov 2021-02-10  3161  		}
3d4aeb9f98058c3 fs/io_uring.c Pavel Begunkov 2021-11-10  3162  
905c172f32c56f0 fs/io_uring.c Pavel Begunkov 2021-02-10  3163  		io_commit_cqring(ctx);
79ebeaee8a21a00 fs/io_uring.c Jens Axboe     2021-08-10  3164  		spin_unlock(&ctx->completion_lock);
905c172f32c56f0 fs/io_uring.c Pavel Begunkov 2021-02-10  3165  		io_cqring_ev_posted(ctx);
3d4aeb9f98058c3 fs/io_uring.c Pavel Begunkov 2021-11-10  3166  		state->flush_cqes = false;
3d4aeb9f98058c3 fs/io_uring.c Pavel Begunkov 2021-11-10  3167  	}
5182ed2e332e8e1 fs/io_uring.c Pavel Begunkov 2021-06-26  3168  
1cce17aca621c38 fs/io_uring.c Pavel Begunkov 2021-09-24  3169  	io_free_batch_list(ctx, state->compl_reqs.first);
6f33b0bc4ea43f5 fs/io_uring.c Pavel Begunkov 2021-09-24  3170  	INIT_WQ_LIST(&state->compl_reqs);
7a743e225b2a9da fs/io_uring.c Pavel Begunkov 2020-03-03  3171  }
7a743e225b2a9da fs/io_uring.c Pavel Begunkov 2020-03-03  3172  

:::::: The code at line 3150 was first introduced by commit
:::::: 6f33b0bc4ea43f5c5ce7b7c9ab66051f80837862 io_uring: use slist for completion batching

:::::: TO: Pavel Begunkov <[email protected]>
:::::: CC: Jens Axboe <[email protected]>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-08-14  1: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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [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