Commit 3e761fdc authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Bart Van Assche
Browse files

UPSTREAM: 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: 7b05bf77 ("Revert "block/mq-deadline: Prioritize high-priority requests"")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Fixes: 38ba64d1 ("block/mq-deadline: Track I/O statistics")
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20210830091128.1854266-1-geert@linux-m68k.org


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
(cherry picked from commit 7b05bf77)
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
Change-Id: Ia33ad5231b41b44d7f4038b065d18bf9734c30f2
parent 3927d235
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment