diff mbox series

[-next,v2] block: make function __bio_integrity_free() static

Message ID 20200702053543.29293-1-weiyongjun1@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next,v2] block: make function __bio_integrity_free() static | expand

Commit Message

Wei Yongjun July 2, 2020, 5:35 a.m. UTC
Fix sparse build warning:

block/bio-integrity.c:27:6: warning:
 symbol '__bio_integrity_free' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
v1 -> v2: fix signed-off-by
---
 block/bio-integrity.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Jens Axboe July 2, 2020, 6:38 p.m. UTC | #1
On 7/1/20 11:35 PM, Wei Yongjun wrote:
> Fix sparse build warning:
> 
> block/bio-integrity.c:27:6: warning:
>  symbol '__bio_integrity_free' was not declared. Should it be static?

Applied, thanks.
diff mbox series

Patch

diff --git a/block/bio-integrity.c b/block/bio-integrity.c
index 4707e90b8ee5..9ffd7e289554 100644
--- a/block/bio-integrity.c
+++ b/block/bio-integrity.c
@@ -24,7 +24,8 @@  void blk_flush_integrity(void)
 	flush_workqueue(kintegrityd_wq);
 }
 
-void __bio_integrity_free(struct bio_set *bs, struct bio_integrity_payload *bip)
+static void __bio_integrity_free(struct bio_set *bs,
+				 struct bio_integrity_payload *bip)
 {
 	if (bs && mempool_initialized(&bs->bio_integrity_pool)) {
 		if (bip->bip_vec)