Skip to content

Commit

Permalink
block: make blk_try_req_merge() static
Browse files Browse the repository at this point in the history
blk_try_req_merge() is only used in block/blk-merge.c, so make it
static.

This addresses a gcc warning when -Wmissing-prototypes is enabled.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Eric Biggers authored and Jens Axboe committed Nov 15, 2018
1 parent 7ff4f80 commit e96c0d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion block/blk-merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,8 @@ static inline bool blk_discard_mergable(struct request *req)
return false;
}

enum elv_merge blk_try_req_merge(struct request *req, struct request *next)
static enum elv_merge blk_try_req_merge(struct request *req,
struct request *next)
{
if (blk_discard_mergable(req))
return ELEVATOR_DISCARD_MERGE;
Expand Down

0 comments on commit e96c0d8

Please sign in to comment.