projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d332594
)
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
patch
|
blob
|
history
diff --git
a/fs/partitions/check.c
b/fs/partitions/check.c
index 934637a9a6dac2bd196dcd495b015d916712ed80..ecfabf53d1caa61498692d584260d8ba3e5dc136 100644
(file)
--- a/
fs/partitions/check.c
+++ b/
fs/partitions/check.c
@@
-327,8
+327,9
@@
static void part_release(struct device *dev)
kfree(p);
}
-static int part_uevent(struct device *dev, struct kobj_u
e
vent_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);