mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 12:16:41 +00:00
block: Silence spurious compiler warnings
Signed-off-by: Kent Overstreet <kmo@daterainc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
4b1faf9316
commit
3f273d301b
@ -89,6 +89,8 @@ static int blk_phys_contig_segment(struct request_queue *q, struct bio *bio,
|
|||||||
struct bio_vec end_bv, nxt_bv;
|
struct bio_vec end_bv, nxt_bv;
|
||||||
struct bvec_iter iter;
|
struct bvec_iter iter;
|
||||||
|
|
||||||
|
uninitialized_var(end_bv);
|
||||||
|
|
||||||
if (!blk_queue_cluster(q))
|
if (!blk_queue_cluster(q))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@ -173,6 +175,8 @@ int blk_rq_map_sg(struct request_queue *q, struct request *rq,
|
|||||||
struct scatterlist *sg;
|
struct scatterlist *sg;
|
||||||
int nsegs, cluster;
|
int nsegs, cluster;
|
||||||
|
|
||||||
|
uninitialized_var(bvprv);
|
||||||
|
|
||||||
nsegs = 0;
|
nsegs = 0;
|
||||||
cluster = blk_queue_cluster(q);
|
cluster = blk_queue_cluster(q);
|
||||||
|
|
||||||
@ -235,6 +239,8 @@ int blk_bio_map_sg(struct request_queue *q, struct bio *bio,
|
|||||||
int nsegs, cluster;
|
int nsegs, cluster;
|
||||||
struct bvec_iter iter;
|
struct bvec_iter iter;
|
||||||
|
|
||||||
|
uninitialized_var(bvprv);
|
||||||
|
|
||||||
nsegs = 0;
|
nsegs = 0;
|
||||||
cluster = blk_queue_cluster(q);
|
cluster = blk_queue_cluster(q);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user