aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2023-03-09 16:51:13 +0000
committerJens Axboe <[email protected]>2023-03-09 17:10:58 +0000
commitfa780334a8c392d959ae05eb19f2410b3a1e6cb0 (patch)
treecae12f065f6e323f3c82a252ea8aaef49f31abb5 /tools/perf/scripts/python/bin/export-to-postgresql-report
parentio_uring/uring_cmd: ensure that device supports IOPOLL (diff)
downloadkernel-fa780334a8c392d959ae05eb19f2410b3a1e6cb0.tar.gz
kernel-fa780334a8c392d959ae05eb19f2410b3a1e6cb0.zip
io_uring: silence variable ‘prev’ set but not used warning
If io_uring.o is built with W=1, it triggers a warning: io_uring/io_uring.c: In function ‘__io_submit_flush_completions’: io_uring/io_uring.c:1502:40: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable] 1502 | struct io_wq_work_node *node, *prev; | ^~~~ which is due to the wq_list_for_each() iterator always keeping a 'prev' variable. Most users need this to remove an entry from a list, for example, but __io_submit_flush_completions() never does that. Add a basic helper that doesn't track prev instead, and use that in that function. Reported-by: Vincenzo Palazzo <[email protected]> Reviewed-by: Vincenzo Palazzo <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions