* [android-common:android13-5.10-2026-10 1/1] io_uring/io_uring.c:1466:61: warning: parameter 'locked' set but not used
@ 2026-10-19 20:37 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-19 20:37 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android13-5.10-2026-10
head: a4c2f82969bc5fa7fcc21ede4b690ece7ff72335
commit: 76050cdc5c3427bc117501314d31f15a2635d50b [1/1] UPSTREAM: io_uring: import 5.15-stable io_uring
config: arm-randconfig-r2104-20261018 (https://download.01.org/0day-ci/archive/20261019/202610192231.34uG86FR-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261019/202610192231.34uG86FR-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610192231.34uG86FR-lkp@intel.com/
All warnings (new ones prefixed by >>):
io_uring/io_uring.c: In function 'io_queue_async_work':
>> io_uring/io_uring.c:1466:61: warning: parameter 'locked' set but not used [-Wunused-but-set-parameter]
static void io_queue_async_work(struct io_kiocb *req, bool *locked)
^~~~~~
vim +/locked +1466 io_uring/io_uring.c
1465
> 1466 static void io_queue_async_work(struct io_kiocb *req, bool *locked)
1467 {
1468 struct io_ring_ctx *ctx = req->ctx;
1469 struct io_kiocb *link = io_prep_linked_timeout(req);
1470 struct io_uring_task *tctx = req->task->io_uring;
1471
1472 /* must not take the lock, NULL it as a precaution */
1473 locked = NULL;
1474
1475 BUG_ON(!tctx);
1476 BUG_ON(!tctx->io_wq);
1477
1478 /* init ->work of the whole link before punting */
1479 io_prep_async_link(req);
1480
1481 /*
1482 * Not expected to happen, but if we do have a bug where this _can_
1483 * happen, catch it here and ensure the request is marked as
1484 * canceled. That will make io-wq go through the usual work cancel
1485 * procedure rather than attempt to run this request (or create a new
1486 * worker for it).
1487 */
1488 if (WARN_ON_ONCE(!same_thread_group(req->task, current)))
1489 req->work.flags |= IO_WQ_WORK_CANCEL;
1490
1491 trace_io_uring_queue_async_work(ctx, io_wq_is_hashed(&req->work), req,
1492 &req->work, req->flags);
1493 io_wq_enqueue(tctx->io_wq, &req->work);
1494 if (link)
1495 io_queue_linked_timeout(link);
1496 }
1497
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-19 20:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-19 20:37 [android-common:android13-5.10-2026-10 1/1] io_uring/io_uring.c:1466:61: warning: parameter 'locked' 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.