Blob Blame History Raw
From: Wei Yongjun <weiyongjun1@huawei.com>
Date: Fri, 17 Jul 2020 18:00:02 +0800
Subject: [PATCH] block: make blk_timeout_init() static
References: bsc#1175995,jsc#SLE-15608
Git-commit: 943c4d9074aa05b86af89eec25330c1995e807c9
Patch-mainline: v5.9-rc1

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>
Signed-off-by: Hannes Reinecke <hare@suse.de>
---
 block/blk-timeout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/blk-timeout.c b/block/blk-timeout.c
index 164d5da7cd65..4baf0ffb5a29 100644
--- a/block/blk-timeout.c
+++ b/block/blk-timeout.c
@@ -92,7 +92,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;
-- 
2.16.4