Revert "fs: partitions: Fix warnings in fs/partitions/check.c"
author黄涛 <huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:16:49 +0000 (22:16 +0800)
committer黄涛 <huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:16:49 +0000 (22:16 +0800)
This reverts commit e27f17b5318851395a66cbaf1524ea89ff8f0cb9.

fs/partitions/check.c

index 934637a9a6dac2bd196dcd495b015d916712ed80..ecfabf53d1caa61498692d584260d8ba3e5dc136 100644 (file)
@@ -327,8 +327,9 @@ static void part_release(struct device *dev)
        kfree(p);
 }
 
-static int part_uevent(struct device *dev, struct kobj_uevent_env *env)
+static int part_uevent(struct device *dev, struct kobj_uvent_env *env)
 {
+       struct gendisk *disk = dev_to_disk(dev);
        struct hd_struct *part = dev_to_part(dev);
 
        add_uevent_var(env, "PARTN=%u", part->partno);