All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [omap-audio:peter/linux-next-wip 5558/6167] fs/io_uring.c:2335:40: warning: variable 'prev' set but not used
Date: Fri, 12 Nov 2021 00:10:33 +0800	[thread overview]
Message-ID: <202111120030.cPG7au4e-lkp@intel.com> (raw)

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

tree:   https://github.com/omap-audio/linux-audio peter/linux-next-wip
head:   d08c31cfb65e8197b0ab607484d26fc48366dcee
commit: 593365467b869247ed6ee30c1ba92b553b4d5a3c [5558/6167] io_uring: use slist for completion batching
config: nios2-defconfig (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://github.com/omap-audio/linux-audio/commit/593365467b869247ed6ee30c1ba92b553b4d5a3c
        git remote add omap-audio https://github.com/omap-audio/linux-audio
        git fetch --no-tags omap-audio peter/linux-next-wip
        git checkout 593365467b869247ed6ee30c1ba92b553b4d5a3c
        # 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 warnings (new ones prefixed by >>):

   fs/io_uring.c: In function 'io_queue_async_work':
   fs/io_uring.c:1456:61: warning: parameter 'locked' set but not used [-Wunused-but-set-parameter]
    1456 | 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:2335:40: warning: variable 'prev' set but not used [-Wunused-but-set-variable]
    2335 |         struct io_wq_work_node *node, *prev;
         |                                        ^~~~


vim +/prev +2335 fs/io_uring.c

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

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

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

                 reply	other threads:[~2021-11-11 16:10 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=202111120030.cPG7au4e-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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.