Skip to content

Commit 943c4d9

Browse files
Wei Yongjunaxboe
authored andcommitted
block: make blk_timeout_init() static
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: 9054650 ("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>
1 parent ab96bba commit 943c4d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/blk-timeout.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ EXPORT_SYMBOL_GPL(blk_abort_request);
9090

9191
static unsigned long blk_timeout_mask __read_mostly;
9292

93-
int __init blk_timeout_init(void)
93+
static int __init blk_timeout_init(void)
9494
{
9595
blk_timeout_mask = roundup_pow_of_two(HZ) - 1;
9696
return 0;

0 commit comments

Comments
 (0)