]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
xen: constify all instances of "struct attribute_group"
authorJan Beulich <JBeulich@suse.com>
Wed, 14 Mar 2012 16:34:19 +0000 (12:34 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 19 Apr 2012 21:15:18 +0000 (17:15 -0400)
The functions these get passed to have been taking pointers to const
since at least 2.6.16.

[upstream git commit ead1d01]
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/sys-hypervisor.c
drivers/xen/xen-balloon.c
drivers/xen/xen-selfballoon.c

index 1e0fe01eb6705dee98acd115be1ab781cdabbc10..fdb6d229c9bbf5e59198189f95e70502116a6ca2 100644 (file)
@@ -97,7 +97,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,
 };
@@ -210,7 +210,7 @@ static struct attribute *xen_compile_attrs[] = {
        NULL
 };
 
-static struct attribute_group xen_compilation_group = {
+static const struct attribute_group xen_compilation_group = {
        .name = "compilation",
        .attrs = xen_compile_attrs,
 };
@@ -340,7 +340,7 @@ static struct attribute *xen_properties_attrs[] = {
        NULL
 };
 
-static struct attribute_group xen_properties_group = {
+static const struct attribute_group xen_properties_group = {
        .name = "properties",
        .attrs = xen_properties_attrs,
 };
index cdd6064a31f17a36449e0ae8070adcf7645aae1b..d0ba67b261cfa023c394c7580d653f5178bee965 100644 (file)
@@ -214,7 +214,7 @@ static struct attribute *balloon_info_attrs[] = {
        NULL
 };
 
-static struct attribute_group balloon_info_group = {
+static const struct attribute_group balloon_info_group = {
        .name = "info",
        .attrs = balloon_info_attrs
 };
index 6fd41c4f511c6fad88c64e7f46b16b1322e2b6d4..b6a9fda5ad9f787e693418c94cce3a32f198a1b0 100644 (file)
@@ -487,7 +487,7 @@ static struct attribute *selfballoon_attrs[] = {
        NULL
 };
 
-static struct attribute_group selfballoon_group = {
+static const struct attribute_group selfballoon_group = {
        .name = "selfballoon",
        .attrs = selfballoon_attrs
 };