Skip to content

Commit

Permalink
block: Declare local symbols static
Browse files Browse the repository at this point in the history
Avoid that building with W=1 causes the compiler to complain that
a declaration for bounce_bio_set and bounce_bio_split is missing.

References: commit a8821f3 ("block: Improvements to bounce-buffer handling")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Neil Brown <neilb@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
KAGA-KOKO authored and axboe committed Jun 21, 2017
1 parent e29387e commit e0fc443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/bounce.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define POOL_SIZE 64
#define ISA_POOL_SIZE 16

struct bio_set *bounce_bio_set, *bounce_bio_split;
static struct bio_set *bounce_bio_set, *bounce_bio_split;
static mempool_t *page_pool, *isa_page_pool;

#if defined(CONFIG_HIGHMEM) || defined(CONFIG_NEED_BOUNCE_POOL)
Expand Down

0 comments on commit e0fc443

Please sign in to comment.