diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-07-02 07:35:43 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-02 20:38:18 +0200 |
commit | 3197d48a7c04eee3e50bd54ef7e17e383b8a919e (patch) | |
tree | fe5835606619efc39cd20d6717476c1c5b3b8a82 /block | |
parent | Merge branch 'nvme-5.8' of git://git.infradead.org/nvme into block-5.8 (diff) | |
download | linux-3197d48a7c04eee3e50bd54ef7e17e383b8a919e.tar.xz linux-3197d48a7c04eee3e50bd54ef7e17e383b8a919e.zip |
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?
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/bio-integrity.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |