]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
block: Declare local symbols static
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 21 Jun 2017 17:55:45 +0000 (10:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Jun 2017 18:01:13 +0000 (12:01 -0600)
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>
block/bounce.c

index 17d77613c4717113af79c46aebc62efdfcb699e3..916ee9a9a2164fc6c983d2367d87bc6cc4f95b40 100644 (file)
@@ -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)