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: m68k-buildonly-randconfig-r003-20211002 (attached as .config)
compiler: m68k-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/593365467b869247ed6ee30c...
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=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
fs/io_uring.c: In function 'io_queue_async_work':
fs/io_uring.c:1456:61: error: parameter 'locked' set but not used
[-Werror=unused-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: error: variable 'prev' set but not
used [-Werror=unused-but-set-variable]
2335 | struct io_wq_work_node
*node, *prev;
| ^~~~
cc1: all warnings being treated as errors
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@lists.01.org