diff options
author | Jens Axboe <axboe@kernel.dk> | 2025-05-15 07:39:41 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-05-15 07:47:59 -0600 |
commit | dbc5ba08ec5ff799a32f27ac79702a2cfc2200cd (patch) | |
tree | 1a4fc8b10e2654d230cad074a82d06fc5740d152 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bbcacab2e8ee373eb8f4bc613912e7c203deb820 (diff) |
block/blk-throttle: silence !BLK_DEV_IO_TRACE variable warnings
If blk-throttle is enabled but blktrace is not, then the compiler will
notice that the following two variables are unused:
../block/blk-throttle.c: In function 'throtl_pending_timer_fn':
../block/blk-throttle.c:1153:30: warning: unused variable 'bio_cnt_w' [-Wunused-variable]
1153 | unsigned int bio_cnt_w = sq_queued(sq, WRITE);
| ^~~~~~~~~
../block/blk-throttle.c:1152:30: warning: unused variable 'bio_cnt_r' [-Wunused-variable]
1152 | unsigned int bio_cnt_r = sq_queued(sq, READ);
| ^~~~~~~~~
Silence that my annotating them with __maybe_unused.
Fixes: 28ad83b774a6 ("blk-throttle: Split the service queue")
Link: https://lore.kernel.org/all/20250515130830.9671-1-aishwarya.tcv@arm.com/
Reported-by: Aishwarya <aishwarya.tcv@arm.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions