block: make function __bio_integrity_free() static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 2 Jul 2020 05:35:43 +0000 (13:35 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Jul 2020 18:38:18 +0000 (12:38 -0600)
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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c

index 4707e90..9ffd7e2 100644 (file)
@@ -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)