[PATCH] md: convert compile time warnings into runtime warnings
... still not sure why we need this .... Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
041ae52e26
commit
5e55e2f5fc
@ -3642,7 +3642,10 @@ static int run(mddev_t *mddev)
|
||||
}
|
||||
|
||||
/* Ok, everything is just fine now */
|
||||
sysfs_create_group(&mddev->kobj, &raid5_attrs_group);
|
||||
if (sysfs_create_group(&mddev->kobj, &raid5_attrs_group))
|
||||
printk(KERN_WARNING
|
||||
"raid5: failed to create sysfs attributes for %s\n",
|
||||
mdname(mddev));
|
||||
|
||||
mddev->queue->unplug_fn = raid5_unplug_device;
|
||||
mddev->queue->issue_flush_fn = raid5_issue_flush;
|
||||
@ -3951,7 +3954,12 @@ static int raid5_start_reshape(mddev_t *mddev)
|
||||
added_devices++;
|
||||
rdev->recovery_offset = 0;
|
||||
sprintf(nm, "rd%d", rdev->raid_disk);
|
||||
sysfs_create_link(&mddev->kobj, &rdev->kobj, nm);
|
||||
if (sysfs_create_link(&mddev->kobj,
|
||||
&rdev->kobj, nm))
|
||||
printk(KERN_WARNING
|
||||
"raid5: failed to create "
|
||||
" link %s for %s\n",
|
||||
nm, mdname(mddev));
|
||||
} else
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user