aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid0.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-09-23 04:06:41 -0400
committerNeilBrown <neilb@suse.de>2009-09-23 04:06:41 -0400
commita9f326ebf22a0de776815240fb76dabe139397ea (patch)
tree4402ba08931cd0663aca077be4d26e66c91869bd /drivers/md/raid0.c
parent7fa07729e439a6184bd824746d06a49cca553f15 (diff)
md: remove sparse waring "symbol xxx shadows an earlier one"
Rename some variable and remove some duplicate definitions to avoid there warnings. None of them are actual errors. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid0.c')
-rw-r--r--drivers/md/raid0.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c
index f845ed98fec9..68a4d129206e 100644
--- a/drivers/md/raid0.c
+++ b/drivers/md/raid0.c
@@ -86,7 +86,7 @@ static void dump_zones(mddev_t *mddev)
86 86
87static int create_strip_zones(mddev_t *mddev) 87static int create_strip_zones(mddev_t *mddev)
88{ 88{
89 int i, c, j, err; 89 int i, c, err;
90 sector_t curr_zone_end, sectors; 90 sector_t curr_zone_end, sectors;
91 mdk_rdev_t *smallest, *rdev1, *rdev2, *rdev, **dev; 91 mdk_rdev_t *smallest, *rdev1, *rdev2, *rdev, **dev;
92 struct strip_zone *zone; 92 struct strip_zone *zone;
@@ -198,6 +198,8 @@ static int create_strip_zones(mddev_t *mddev)
198 /* now do the other zones */ 198 /* now do the other zones */
199 for (i = 1; i < conf->nr_strip_zones; i++) 199 for (i = 1; i < conf->nr_strip_zones; i++)
200 { 200 {
201 int j;
202
201 zone = conf->strip_zone + i; 203 zone = conf->strip_zone + i;
202 dev = conf->devlist + i * mddev->raid_disks; 204 dev = conf->devlist + i * mddev->raid_disks;
203 205
@@ -207,7 +209,6 @@ static int create_strip_zones(mddev_t *mddev)
207 c = 0; 209 c = 0;
208 210
209 for (j=0; j<cnt; j++) { 211 for (j=0; j<cnt; j++) {
210 char b[BDEVNAME_SIZE];
211 rdev = conf->devlist[j]; 212 rdev = conf->devlist[j];
212 printk(KERN_INFO "raid0: checking %s ...", 213 printk(KERN_INFO "raid0: checking %s ...",
213 bdevname(rdev->bdev, b)); 214 bdevname(rdev->bdev, b));