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: 7b05bf771084ff78 ("Revert "block/mq-deadline: Prioritize high-priority requests"")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
v2:
- Fix prefix in one-line summary.
---
block/mq-deadline.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
@@ -270,12 +270,6 @@ deadline_move_request(struct deadline_data *dd, struct dd_per_prio *per_prio,deadline_remove_request(rq->q,per_prio,rq);}-/* Number of requests queued for a given priority level. */-staticu32dd_queued(structdeadline_data*dd,enumdd_prioprio)-{-returndd_sum(dd,inserted,prio)-dd_sum(dd,completed,prio);-}-/**deadline_check_fiforeturns0iftherearenoexpiredrequestsonthefifo,*1otherwise.Requires!list_empty(&dd->fifo_list[data_dir])
@@ -951,6 +945,12 @@ static int dd_async_depth_show(void *data, struct seq_file *m)return0;}+/* Number of requests queued for a given priority level. */+staticu32dd_queued(structdeadline_data*dd,enumdd_prioprio)+{+returndd_sum(dd,inserted,prio)-dd_sum(dd,completed,prio);+}+staticintdd_queued_show(void*data,structseq_file*m){structrequest_queue*q=data;
From: Bart Van Assche <bvanassche@acm.org> Date: 2021-08-30 23:22:21
On 8/30/21 2:11 AM, Geert Uytterhoeven wrote:
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: 7b05bf771084ff78 ("Revert "block/mq-deadline: Prioritize high-priority requests"")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
The Fixes tag probably should be changed into the following:
Fixes: 38ba64d12d4c ("block/mq-deadline: Track I/O statistics")
Anyway:
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
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.
From: Stephen Rothwell <hidden> Date: 2021-09-06 02:56:16
Hi Jens,
On Thu, 2 Sep 2021 06:35:47 -0600 Jens Axboe [off-list ref] wrote:
On 8/30/21 3:11 AM, Geert Uytterhoeven wrote:
quoted
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.
Applied, thanks.
Can we get this to Linus ASAP as he has now made warnings fatal, so
this is causing lots of build failures.
--
Cheers,
Stephen Rothwell
Hi Jens,
On Thu, 2 Sep 2021 06:35:47 -0600 Jens Axboe [off-list ref] wrote:
quoted
On 8/30/21 3:11 AM, Geert Uytterhoeven wrote:
quoted
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.
Applied, thanks.
Can we get this to Linus ASAP as he has now made warnings fatal, so
this is causing lots of build failures.
Sure, it's actually the only branch I haven't sent off yet today. Will
do so now.
--
Jens Axboe