block: make blk_timeout_init() static
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 17 Jul 2020 10:00:02 +0000 (18:00 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 17 Jul 2020 13:13:42 +0000 (07:13 -0600)
The sparse tool complains as follows:

block/blk-timeout.c:93:12: warning:
 symbol 'blk_timeout_init' was not declared. Should it be static?

Function blk_timeout_init() is not used outside of blk-timeout.c, so
mark it static.

Fixes: 9054650fac24 ("block: relax jiffies rounding for timeouts")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-timeout.c

index 8ab8a82..4c1fc34 100644 (file)
@@ -90,7 +90,7 @@ EXPORT_SYMBOL_GPL(blk_abort_request);
 
 static unsigned long blk_timeout_mask __read_mostly;
 
-int __init blk_timeout_init(void)
+static int __init blk_timeout_init(void)
 {
        blk_timeout_mask = roundup_pow_of_two(HZ) - 1;
        return 0;