Skip to content

Commit

Permalink
blk-wbt: fix old-style function declaration
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
arndb authored and axboe committed Nov 16, 2016
1 parent 92153d3 commit 4121d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-wbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4121d38

Please sign in to comment.