From: Harvey Harrison Date: Tue, 4 Mar 2008 10:31:22 +0000 (+0100) Subject: block: fix shadowed variable warning in blk-map.c X-Git-Tag: v3.12-rc1~22594^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56d94a37f63ad1c9da3bc8e903f79d0ee1e80170;p=kernel%2Fkernel-generic.git block: fix shadowed variable warning in blk-map.c Introduced between 2.6.25-rc2 and -rc3 block/blk-map.c:154:14: warning: symbol 'bio' shadows an earlier one block/blk-map.c:110:13: originally declared here Signed-off-by: Harvey Harrison Signed-off-by: Jens Axboe --- diff --git a/block/blk-map.c b/block/blk-map.c index 0760963..c07d9c8 100644 --- a/block/blk-map.c +++ b/block/blk-map.c @@ -152,10 +152,10 @@ int blk_rq_map_user(struct request_queue *q, struct request *rq, */ if (len & q->dma_pad_mask) { unsigned int pad_len = (q->dma_pad_mask & ~len) + 1; - struct bio *bio = rq->biotail; + struct bio *tail = rq->biotail; - bio->bi_io_vec[bio->bi_vcnt - 1].bv_len += pad_len; - bio->bi_size += pad_len; + tail->bi_io_vec[tail->bi_vcnt - 1].bv_len += pad_len; + tail->bi_size += pad_len; rq->extra_len += pad_len; }