diff options
author | 2024-01-10 08:29:53 -0700 | |
---|---|---|
committer | 2024-01-10 08:43:06 -0700 | |
commit | 742e324a0679ce271f7475a40056bac6917a950c (patch) | |
tree | 918936abf759e183523cdb647ef0ba771dbefca3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'md-6.8-20240109' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md into for-6.8/block (diff) | |
download | wireguard-linux-742e324a0679ce271f7475a40056bac6917a950c.tar.xz wireguard-linux-742e324a0679ce271f7475a40056bac6917a950c.zip |
block/iocost: silence warning on 'last_period' potentially being unused
If CONFIG_TRACEPOINTS isn't enabled, we assign this variable but then
never use it. This can cause the compiler to complain about that:
block/blk-iocost.c:1264:6: warning: variable 'last_period' set but not used [-Wunused-but-set-variable]
1264 | u64 last_period, cur_period;
| ^
Rather than add ifdefs to guard this, just mark it __maybe_unused.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202401102335.GiWdeIo9-lkp@intel.com/
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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