Displaying 2 results from an estimated 2 matches for "xen_compilation_init".
2012 Feb 17
0
[PATCH] linux-2.6.18/drivers/xen/: constify all instances of "struct attribute_group"
...on_attrs,
};
@@ -197,12 +197,12 @@ static struct attribute *xen_compile_att
NULL
};
-static struct attribute_group xen_compilation_group = {
+static const struct attribute_group xen_compilation_group = {
.name = "compilation",
.attrs = xen_compile_attrs,
};
-int __init static xen_compilation_init(void)
+static int __init xen_compilation_init(void)
{
return sysfs_create_group(&hypervisor_subsys.kset.kobj,
&xen_compilation_group);
@@ -318,7 +318,7 @@ static struct attribute *xen_properties_
NULL
};
-static struct attribute_group xen_properties_group = {
+static const st...
2006 May 18
27
[PATCH] /sys/hypervisor/uuid
...te_file(&hypervisor_subsys.kset.kobj, &uuid_attr.attr);
+}
+
+static void xen_sysfs_uuid_destroy(void)
+{
+ sysfs_remove_file(&hypervisor_subsys.kset.kobj, &uuid_attr.attr);
}
/* xen compilation attributes */
@@ -285,10 +318,15 @@ static int __init hyper_sysfs_init(void)
ret = xen_compilation_init();
if (ret)
goto comp_out;
+ ret = xen_sysfs_uuid_init();
+ if (ret)
+ goto uuid_out;
ret = xen_properties_init();
if (!ret)
goto out;
+ xen_sysfs_uuid_destroy();
+uuid_out:
xen_compilation_destroy();
comp_out:
xen_sysfs_version_destroy();
@@ -302,6 +340,7 @@ static void hyper_s...