[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] linux-2.6.18/drivers/xen/: constify all instances of "struct attribute_group"
The functions these get passed to have been taking pointers to const since at least 2.6.16. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- a/drivers/xen/balloon/sysfs.c +++ b/drivers/xen/balloon/sysfs.c @@ -97,7 +97,7 @@ static struct attribute *balloon_info_at NULL }; -static struct attribute_group balloon_info_group = { +static const struct attribute_group balloon_info_group = { .name = "info", .attrs = balloon_info_attrs, }; --- a/drivers/xen/blkback/xenbus.c +++ b/drivers/xen/blkback/xenbus.c @@ -136,7 +136,7 @@ static struct attribute *vbdstat_attrs[] NULL }; -static struct attribute_group vbdstat_group = { +static const struct attribute_group vbdstat_group = { .name = "statistics", .attrs = vbdstat_attrs, }; --- a/drivers/xen/blktap/xenbus.c +++ b/drivers/xen/blktap/xenbus.c @@ -152,7 +152,7 @@ static struct attribute *tapstat_attrs[] NULL }; -static struct attribute_group tapstat_group = { +static const struct attribute_group tapstat_group = { .name = "statistics", .attrs = tapstat_attrs, }; --- a/drivers/xen/core/xen_sysfs.c +++ b/drivers/xen/core/xen_sysfs.c @@ -84,7 +84,7 @@ static struct attribute *version_attrs[] NULL }; -static struct attribute_group version_group = { +static const struct attribute_group version_group = { .name = "version", .attrs = version_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 struct attribute_group xen_properties_group = { .name = "properties", .attrs = xen_properties_attrs, }; Attachment:
xen-const-attribute_group.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |