block: mark biovec_init_pool static
PATCH 1/1 block: mark biovec_init_pool static
Signed-off-by Christoph Hellwig <[email protected]>
--- block/bio.c | 2 +- include/linux/bio.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
block/bio.c +1 -1
@@ -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
@@ -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
Quoted 24 lines · Christoph Hellwig
Signed-off-by Christoph Hellwig <[email protected]>--- block/bio.c | 2 +- include/linux/bio.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)block/bio.c +1
-1@@ -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
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 Bart Van Assche <[email protected]>
Quoted 6 lines · Christoph Hellwig
Signed-off-by Christoph Hellwig <[email protected]>--- block/bio.c | 2 +- include/linux/bio.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
Reviewed-by Hannes Reinecke <[email protected]>
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
Quoted 1 line · Christoph Hellwig
Applied, thanks!
[1/1] block: mark biovec_init_pool static
commit: 353c85082a82fa6d78cbb3821749d5982ffed9f4
Best regards,
Signature · 1 line
Jens Axboe