summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-sysfs.c
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2009-12-11 00:51:53 +0100
committerAlasdair G Kergon <agk@redhat.com>2009-12-11 00:51:53 +0100
commitd2bb7df8cac647b92f51fb84ae735771e7adbfa7 (patch)
treea9da22b1a5b857c80ff459dbb5da7578547bae7d /drivers/md/dm-sysfs.c
parentdm exception store: free tmp_store on persistent flag error (diff)
downloadlinux-d2bb7df8cac647b92f51fb84ae735771e7adbfa7.tar.xz
linux-d2bb7df8cac647b92f51fb84ae735771e7adbfa7.zip
dm: sysfs add empty release function to avoid debug warning
This patch just removes an unnecessary warning: kobject: 'dm': does not have a release() function, it is broken and must be fixed. The kobject is embedded in mapped device struct, so code does not need to release memory explicitly here. Cc: stable@kernel.org Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-sysfs.c')
-rw-r--r--drivers/md/dm-sysfs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/md/dm-sysfs.c b/drivers/md/dm-sysfs.c
index 4b045903a4e2..b000de38c99a 100644
--- a/drivers/md/dm-sysfs.c
+++ b/drivers/md/dm-sysfs.c
@@ -80,12 +80,20 @@ static struct sysfs_ops dm_sysfs_ops = {
};
/*
+ * The sysfs structure is embedded in md struct, nothing to do here
+ */
+static void dm_sysfs_release(struct kobject *kobj)
+{
+}
+
+/*
* dm kobject is embedded in mapped_device structure
* no need to define release function here
*/
static struct kobj_type dm_ktype = {
.sysfs_ops = &dm_sysfs_ops,
.default_attrs = dm_attrs,
+ .release = dm_sysfs_release
};
/*