]> git.baikalelectronics.ru Git - kernel.git/commit
blk-wbt: Declare local functions static
authorBart Van Assche <bvanassche@acm.org>
Wed, 23 Jan 2019 19:05:57 +0000 (11:05 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Jan 2019 18:09:21 +0000 (11:09 -0700)
commit56f22b205660eddbbcc08ac8e491d0a4f5d6f514
tree4d76f7d43c01afa9f29eb35a6507c3c03f24ffa8
parent55288d09e99a5327c50bfe5ac5fb3633f582e881
blk-wbt: Declare local functions static

This patch avoids that sparse reports the following warnings:

  CHECK   block/blk-wbt.c
block/blk-wbt.c:600:6: warning: symbol 'wbt_issue' was not declared. Should it be static?
block/blk-wbt.c:620:6: warning: symbol 'wbt_requeue' was not declared. Should it be static?
  CC      block/blk-wbt.o
block/blk-wbt.c:600:6: warning: no previous prototype for wbt_issue [-Wmissing-prototypes]
 void wbt_issue(struct rq_qos *rqos, struct request *rq)
      ^~~~~~~~~
block/blk-wbt.c:620:6: warning: no previous prototype for wbt_requeue [-Wmissing-prototypes]
 void wbt_requeue(struct rq_qos *rqos, struct request *rq)
      ^~~~~~~~~~~

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-wbt.c