]> git.baikalelectronics.ru Git - kernel.git/commit
block/mq-deadline: Move dd_queued() to fix defined but not used warning
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 30 Aug 2021 09:11:28 +0000 (11:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Sep 2021 12:34:45 +0000 (06:34 -0600)
commit8ac1a42544b7f4c85257da403e5453ee3089d8a5
treef15b10168ef9c63cba5cd57564cd5d4f0ec25f03
parente26ea29887055122fa26dfed7bc9cd51baa8a165
block/mq-deadline: Move dd_queued() to fix defined but not used warning

If CONFIG_BLK_DEBUG_FS=n:

    block/mq-deadline.c:274:12: warning: ‘dd_queued’ defined but not used [-Wunused-function]
      274 | static u32 dd_queued(struct deadline_data *dd, enum dd_prio prio)
  |            ^~~~~~~~~

Fix this by moving dd_queued() just before the sole function that calls
it.

Fixes: d3460acb6820bf81 ("Revert "block/mq-deadline: Prioritize high-priority requests"")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: 8720b56348d9 ("block/mq-deadline: Track I/O statistics")
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20210830091128.1854266-1-geert@linux-m68k.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/mq-deadline.c