summaryrefslogtreecommitdiffstats
path: root/block/bounce.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2017-06-21 19:55:45 +0200
committerJens Axboe <axboe@kernel.dk>2017-06-21 20:01:13 +0200
commite0fc443a8643d4c9b330a637a1e6a422a44dde2a (patch)
treee4dba95d23ea95453884c0bca4215b71e0e77aab /block/bounce.c
parentblock: Add fallthrough markers to switch statements (diff)
downloadlinux-e0fc443a8643d4c9b330a637a1e6a422a44dde2a.tar.xz
linux-e0fc443a8643d4c9b330a637a1e6a422a44dde2a.zip
block: Declare local symbols static
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 a8821f3f32be ("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>
Diffstat (limited to 'block/bounce.c')
-rw-r--r--block/bounce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bounce.c b/block/bounce.c
index 17d77613c471..916ee9a9a216 100644
--- a/block/bounce.c
+++ b/block/bounce.c
@@ -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)