summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2026-05-27 17:06:46 +0200
committerJens Axboe <axboe@kernel.dk>2026-05-28 07:57:50 -0600
commit353c85082a82fa6d78cbb3821749d5982ffed9f4 (patch)
treea15fe7ac831b19518a51460aa108fe8d22d89dbf
parent1133b93fc7f63defaa2c07d5f49873c14bb74681 (diff)
downloadlinux-next-353c85082a82fa6d78cbb3821749d5982ffed9f4.tar.gz
linux-next-353c85082a82fa6d78cbb3821749d5982ffed9f4.zip
block: mark biovec_init_pool static
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@kernel.org> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Link: https://patch.msgid.link/20260527150646.2349405-1-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--block/bio.c2
-rw-r--r--include/linux/bio.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/block/bio.c b/block/bio.c
index 2d880d1255fe..e9944dab0132 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -1873,7 +1873,7 @@ EXPORT_SYMBOL_GPL(bio_trim);
* create memory pools for biovec's in a bio_set.
* use the global biovec slabs created for general use.
*/
-int biovec_init_pool(mempool_t *pool, int pool_entries)
+static int biovec_init_pool(mempool_t *pool, int pool_entries)
{
struct biovec_slab *bp = bvec_slabs + ARRAY_SIZE(bvec_slabs) - 1;
diff --git a/include/linux/bio.h b/include/linux/bio.h
index 7597ae4dc52b..e60d2f5bd3dc 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -347,7 +347,6 @@ enum {
};
extern int bioset_init(struct bio_set *, unsigned int, unsigned int, int flags);
extern void bioset_exit(struct bio_set *);
-extern int biovec_init_pool(mempool_t *pool, int pool_entries);
struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs,
blk_opf_t opf, gfp_t gfp, struct bio_set *bs);