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