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>
Wed, 14 Mar 2012 16:34:19 +0000 (12:34 -0400)
The functions these get passed to have been taking pointers to const
since at least 2.6.16.

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 3832e303c33aca5ceabf0bb1540e02a28b7765bc..3f7922ec13e3d5ecabf46bf01dd48979e1a960a3 100644 (file)
@@ -207,7 +207,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 767ff656d5a71b65d15bb213bff3b311256ee1c3..146c948970160147142e22b511439346f6602cf1 100644 (file)
@@ -488,7 +488,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
 };