X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=block%2Fgenhd.c;h=25d1f42568cc19714a2f8a5469ecd2842e9ea7e5;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=5a8d3bf02f1715702fe94515339f1cdfbfd3d088;hpb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57;p=linux-2.6.git diff --git a/block/genhd.c b/block/genhd.c index 5a8d3bf02..25d1f4256 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -2,7 +2,6 @@ * gendisk handling */ -#include #include #include #include @@ -17,8 +16,7 @@ #include #include -static struct subsystem block_subsys; - +struct subsystem block_subsys; static DEFINE_MUTEX(block_subsys_lock); /* @@ -511,9 +509,7 @@ static struct kset_uevent_ops block_uevent_ops = { .uevent = block_uevent, }; -/* declare block_subsys. */ -static decl_subsys(block, &ktype_block, &block_uevent_ops); - +decl_subsys(block, &ktype_block, &block_uevent_ops); /* * aggregate disk stat collector. Uses the same stats that the sysfs