]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
block: mark biovec_init_pool static
authorChristoph Hellwig <hch@lst.de>
Wed, 27 May 2026 15:06:46 +0000 (17:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 May 2026 13:57:50 +0000 (07:57 -0600)
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>
block/bio.c
include/linux/bio.h

index 2d880d1255fe9390c15a4b4f02dd640eaf225741..e9944dab0132706609b789764aa3458cbb4c393f 100644 (file)
@@ -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;
 
index 7597ae4dc52bd6b72a5de1f455a3ede11ee23a0c..e60d2f5bd3dc88800ae3082ff827649628735fc8 100644 (file)
@@ -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);