* [omap-audio:peter/linux-next-wip 5558/6167] fs/io_uring.c:2335:40: warning: variable 'prev' set but not used
@ 2021-11-11 16:10 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-11 16:10 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-11 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 16:10 [omap-audio:peter/linux-next-wip 5558/6167] fs/io_uring.c:2335:40: warning: variable 'prev' set but not used kernel test robot
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.