Skip to content

Commit 3197d48

Browse files
Wei Yongjunaxboe
Wei Yongjun
authored andcommitted
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent b3c58fc commit 3197d48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

block/bio-integrity.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ void blk_flush_integrity(void)
2424
flush_workqueue(kintegrityd_wq);
2525
}
2626

27-
void __bio_integrity_free(struct bio_set *bs, struct bio_integrity_payload *bip)
27+
static void __bio_integrity_free(struct bio_set *bs,
28+
struct bio_integrity_payload *bip)
2829
{
2930
if (bs && mempool_initialized(&bs->bio_integrity_pool)) {
3031
if (bip->bip_vec)

0 commit comments

Comments
 (0)