Skip to contentSkip to conversation

block: mark biovec_init_pool static

PATCH Applied Christoph Hellwig 4 participants 4 messages May 27 – May 28 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: mark biovec_init_pool static

---
 block/bio.c         | 2 +-
 include/linux/bio.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
block/bio.c +1 -1
index 2d880d1255fe..e9944dab0132 100644
@@ -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;
 
include/linux/bio.h +0 -1
index 7597ae4dc52b..e60d2f5bd3dc 100644
@@ -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);
Signature · 1 line
2.53.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 24 lines · Christoph Hellwig
---
  block/bio.c         | 2 +-
  include/linux/bio.h | 1 -
  2 files changed, 1 insertion(+), 2 deletions(-)
block/bio.c +1 -1
index 2d880d1255fe..e9944dab0132 100644
@@ -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;
 
include/linux/bio.h +0 -0
index 7597ae4dc52b..e60d2f5bd3dc 100644

include/linux/bio.h enum { · line 352

Quoted 7 lines
include/linux/bio.h +0 -1
@@ -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);
Reviewed-by on v1 1/1
#2 lore raw
In reply to Christoph Hellwig
Quoted 6 lines · Christoph Hellwig
---
  block/bio.c         | 2 +-
  include/linux/bio.h | 1 -
  2 files changed, 1 insertion(+), 2 deletions(-)

Cheers,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke                  Kernel Storage Architect
[email protected]                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
maintainer Applied
#3 lore raw
In reply to Christoph Hellwig
Quoted 1 line · Christoph Hellwig

Applied, thanks!

[1/1] block: mark biovec_init_pool static

      commit: 353c85082a82fa6d78cbb3821749d5982ffed9f4

Best regards,

Signature · 1 line
Jens Axboe