summaryrefslogtreecommitdiff
path: root/block/genhd.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-03-04 11:23:46 +0100
committerJens Axboe <jens.axboe@oracle.com>2008-03-04 11:28:31 +0100
commit1826eadfc42839af7c1c5a1859510aff635d3fa1 (patch)
tree387895990fb3db91cbf9d82d33f5df27d62a0219 /block/genhd.c
parentff88972c850ced92b9c4c7f538d85829c741eeb0 (diff)
downloadlwn-1826eadfc42839af7c1c5a1859510aff635d3fa1.tar.gz
lwn-1826eadfc42839af7c1c5a1859510aff635d3fa1.zip
block/genhd.c: cleanups
This patch contains the following cleanups: - make the needlessly global struct disk_type static - #if 0 the unused genhd_media_change_notify() Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/genhd.c')
-rw-r--r--block/genhd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c
index abc6feddc8c6..c44527d16c52 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -24,6 +24,8 @@ static DEFINE_MUTEX(block_class_lock);
struct kobject *block_depr;
#endif
+static struct device_type disk_type;
+
/*
* Can be deleted altogether. Later.
*
@@ -502,7 +504,7 @@ struct class block_class = {
.name = "block",
};
-struct device_type disk_type = {
+static struct device_type disk_type = {
.name = "disk",
.groups = disk_attr_groups,
.release = disk_release,
@@ -632,12 +634,14 @@ static void media_change_notify_thread(struct work_struct *work)
put_device(gd->driverfs_dev);
}
+#if 0
void genhd_media_change_notify(struct gendisk *disk)
{
get_device(disk->driverfs_dev);
schedule_work(&disk->async_notify);
}
EXPORT_SYMBOL_GPL(genhd_media_change_notify);
+#endif /* 0 */
dev_t blk_lookup_devt(const char *name)
{