OSDN Git Service

blk-iolatency: #include "blk.h"
authorBart Van Assche <bvanassche@acm.org>
Wed, 20 Mar 2019 20:15:01 +0000 (13:15 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Mar 2019 20:19:38 +0000 (14:19 -0600)
This patch avoids that the following warning is reported when building
with W=1:

block/blk-iolatency.c:734:5: warning: no previous prototype for 'blk_iolatency_init' [-Wmissing-prototypes]

Cc: Josef Bacik <jbacik@fb.com>
Fixes: d70675121546 ("block: introduce blk-iolatency io controller") # v4.19
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iolatency.c

index 2620baa..507212d 100644 (file)
@@ -75,6 +75,7 @@
 #include <linux/blk-mq.h>
 #include "blk-rq-qos.h"
 #include "blk-stat.h"
+#include "blk.h"
 
 #define DEFAULT_SCALE_COOKIE 1000000U