]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
blk-wbt: fix old-style function declaration
authorArnd Bergmann <arnd@arndb.de>
Wed, 16 Nov 2016 15:29:57 +0000 (16:29 +0100)
committerJens Axboe <axboe@fb.com>
Wed, 16 Nov 2016 15:32:40 +0000 (08:32 -0700)
The newly added driver causes a harmless warning in some configurations:

block/blk-wbt.c:250:1: error: ‘inline’ is not at beginning of declaration [-Werror=old-style-declaration]
 static bool inline stat_sample_valid(struct blk_rq_stat *stat)

This makes it use the expected format for the declaration.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-wbt.c

index 20712f0db6eab03a7d8d3271e29bfe111e678722..9f97594e68ce738528bd23be5e366fd92d3603c7 100644 (file)
@@ -247,7 +247,7 @@ static bool calc_wb_limits(struct rq_wb *rwb)
        return ret;
 }
 
-static bool inline stat_sample_valid(struct blk_rq_stat *stat)
+static inline bool stat_sample_valid(struct blk_rq_stat *stat)
 {
        /*
         * We need at least one read sample, and a minimum of