Skip to content

Commit ead1d01

Browse files
jbeulichkonradwilk
authored andcommitted
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 <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
1 parent 42c46e6 commit ead1d01

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

drivers/xen/sys-hypervisor.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static struct attribute *version_attrs[] = {
9797
NULL
9898
};
9999

100-
static struct attribute_group version_group = {
100+
static const struct attribute_group version_group = {
101101
.name = "version",
102102
.attrs = version_attrs,
103103
};
@@ -210,7 +210,7 @@ static struct attribute *xen_compile_attrs[] = {
210210
NULL
211211
};
212212

213-
static struct attribute_group xen_compilation_group = {
213+
static const struct attribute_group xen_compilation_group = {
214214
.name = "compilation",
215215
.attrs = xen_compile_attrs,
216216
};
@@ -340,7 +340,7 @@ static struct attribute *xen_properties_attrs[] = {
340340
NULL
341341
};
342342

343-
static struct attribute_group xen_properties_group = {
343+
static const struct attribute_group xen_properties_group = {
344344
.name = "properties",
345345
.attrs = xen_properties_attrs,
346346
};

drivers/xen/xen-balloon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static struct attribute *balloon_info_attrs[] = {
207207
NULL
208208
};
209209

210-
static struct attribute_group balloon_info_group = {
210+
static const struct attribute_group balloon_info_group = {
211211
.name = "info",
212212
.attrs = balloon_info_attrs
213213
};

drivers/xen/xen-selfballoon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ static struct attribute *selfballoon_attrs[] = {
488488
NULL
489489
};
490490

491-
static struct attribute_group selfballoon_group = {
491+
static const struct attribute_group selfballoon_group = {
492492
.name = "selfballoon",
493493
.attrs = selfballoon_attrs
494494
};

0 commit comments

Comments
 (0)