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@suse.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:
Родитель
42c46e6ba5
Коммит
ead1d01425
|
@ -97,7 +97,7 @@ static struct attribute *version_attrs[] = {
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct attribute_group version_group = {
|
static const struct attribute_group version_group = {
|
||||||
.name = "version",
|
.name = "version",
|
||||||
.attrs = version_attrs,
|
.attrs = version_attrs,
|
||||||
};
|
};
|
||||||
|
@ -210,7 +210,7 @@ static struct attribute *xen_compile_attrs[] = {
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct attribute_group xen_compilation_group = {
|
static const struct attribute_group xen_compilation_group = {
|
||||||
.name = "compilation",
|
.name = "compilation",
|
||||||
.attrs = xen_compile_attrs,
|
.attrs = xen_compile_attrs,
|
||||||
};
|
};
|
||||||
|
@ -340,7 +340,7 @@ static struct attribute *xen_properties_attrs[] = {
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct attribute_group xen_properties_group = {
|
static const struct attribute_group xen_properties_group = {
|
||||||
.name = "properties",
|
.name = "properties",
|
||||||
.attrs = xen_properties_attrs,
|
.attrs = xen_properties_attrs,
|
||||||
};
|
};
|
||||||
|
|
|
@ -207,7 +207,7 @@ static struct attribute *balloon_info_attrs[] = {
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct attribute_group balloon_info_group = {
|
static const struct attribute_group balloon_info_group = {
|
||||||
.name = "info",
|
.name = "info",
|
||||||
.attrs = balloon_info_attrs
|
.attrs = balloon_info_attrs
|
||||||
};
|
};
|
||||||
|
|
|
@ -488,7 +488,7 @@ static struct attribute *selfballoon_attrs[] = {
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct attribute_group selfballoon_group = {
|
static const struct attribute_group selfballoon_group = {
|
||||||
.name = "selfballoon",
|
.name = "selfballoon",
|
||||||
.attrs = selfballoon_attrs
|
.attrs = selfballoon_attrs
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче