Skip to contentSkip to conversation

block: make function __bio_integrity_free() static

PATCH Applied Wei Yongjun 2 participants 2 messages Jul 2, 2020 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 block: make function __bio_integrity_free() static

Fix sparse build warning:

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

---
v1 -> v2: fix signed-off-by

---
 block/bio-integrity.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
block/bio-integrity.c +2 -1
index 4707e90b8ee5..9ffd7e289554 100644
@@ -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)
maintainer Applied
#1 lore raw
Quoted 4 lines · Wei Yongjun

Fix sparse build warning:

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

Applied, thanks.

Signature · 1 line
Jens Axboe