|
@@ -79,6 +79,13 @@ static struct sysfs_ops dm_sysfs_ops = {
|
|
|
.show = dm_attr_show,
|
|
|
};
|
|
|
|
|
|
+/*
|
|
|
+ * 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
|
|
@@ -86,6 +93,7 @@ static struct sysfs_ops dm_sysfs_ops = {
|
|
|
static struct kobj_type dm_ktype = {
|
|
|
.sysfs_ops = &dm_sysfs_ops,
|
|
|
.default_attrs = dm_attrs,
|
|
|
+ .release = dm_sysfs_release
|
|
|
};
|
|
|
|
|
|
/*
|