Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jan Beulich and committed by
Konrad Rzeszutek Wilk
ead1d014 42c46e6b

+5 -5
+3 -3
drivers/xen/sys-hypervisor.c
··· 97 97 NULL 98 98 }; 99 99 100 - static struct attribute_group version_group = { 100 + static const struct attribute_group version_group = { 101 101 .name = "version", 102 102 .attrs = version_attrs, 103 103 }; ··· 210 210 NULL 211 211 }; 212 212 213 - static struct attribute_group xen_compilation_group = { 213 + static const struct attribute_group xen_compilation_group = { 214 214 .name = "compilation", 215 215 .attrs = xen_compile_attrs, 216 216 }; ··· 340 340 NULL 341 341 }; 342 342 343 - static struct attribute_group xen_properties_group = { 343 + static const struct attribute_group xen_properties_group = { 344 344 .name = "properties", 345 345 .attrs = xen_properties_attrs, 346 346 };
+1 -1
drivers/xen/xen-balloon.c
··· 207 207 NULL 208 208 }; 209 209 210 - static struct attribute_group balloon_info_group = { 210 + static const struct attribute_group balloon_info_group = { 211 211 .name = "info", 212 212 .attrs = balloon_info_attrs 213 213 };
+1 -1
drivers/xen/xen-selfballoon.c
··· 488 488 NULL 489 489 }; 490 490 491 - static struct attribute_group selfballoon_group = { 491 + static const struct attribute_group selfballoon_group = { 492 492 .name = "selfballoon", 493 493 .attrs = selfballoon_attrs 494 494 };