Skip to content

Commit

Permalink
xen: constify all instances of "struct attribute_group"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Beulich authored and Konrad Rzeszutek Wilk committed Mar 14, 2012
1 parent 42c46e6 commit ead1d01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions drivers/xen/sys-hypervisor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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,
};
Expand Down Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/xen/xen-balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/xen/xen-selfballoon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit ead1d01

Please sign in to comment.