sys-hypervisor.c (94bd217e2d683719ab21a4ac117d8a1b91cbedc9) | sys-hypervisor.c (ead1d01425bbd28c4354b539caa4075bde00ed72) |
---|---|
1/* 2 * copyright (c) 2006 IBM Corporation 3 * Authored by: Mike D. Day <ncmike@us.ibm.com> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 */ --- 83 unchanged lines hidden (view full) --- 92 93static struct attribute *version_attrs[] = { 94 &major_attr.attr, 95 &minor_attr.attr, 96 &extra_attr.attr, 97 NULL 98}; 99 | 1/* 2 * copyright (c) 2006 IBM Corporation 3 * Authored by: Mike D. Day <ncmike@us.ibm.com> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 */ --- 83 unchanged lines hidden (view full) --- 92 93static struct attribute *version_attrs[] = { 94 &major_attr.attr, 95 &minor_attr.attr, 96 &extra_attr.attr, 97 NULL 98}; 99 |
100static struct attribute_group version_group = { | 100static const struct attribute_group version_group = { |
101 .name = "version", 102 .attrs = version_attrs, 103}; 104 105static int __init xen_sysfs_version_init(void) 106{ 107 return sysfs_create_group(hypervisor_kobj, &version_group); 108} --- 96 unchanged lines hidden (view full) --- 205 206static struct attribute *xen_compile_attrs[] = { 207 &compiler_attr.attr, 208 &compiled_by_attr.attr, 209 &compile_date_attr.attr, 210 NULL 211}; 212 | 101 .name = "version", 102 .attrs = version_attrs, 103}; 104 105static int __init xen_sysfs_version_init(void) 106{ 107 return sysfs_create_group(hypervisor_kobj, &version_group); 108} --- 96 unchanged lines hidden (view full) --- 205 206static struct attribute *xen_compile_attrs[] = { 207 &compiler_attr.attr, 208 &compiled_by_attr.attr, 209 &compile_date_attr.attr, 210 NULL 211}; 212 |
213static struct attribute_group xen_compilation_group = { | 213static const struct attribute_group xen_compilation_group = { |
214 .name = "compilation", 215 .attrs = xen_compile_attrs, 216}; 217 218static int __init xen_compilation_init(void) 219{ 220 return sysfs_create_group(hypervisor_kobj, &xen_compilation_group); 221} --- 113 unchanged lines hidden (view full) --- 335 &capabilities_attr.attr, 336 &changeset_attr.attr, 337 &virtual_start_attr.attr, 338 &pagesize_attr.attr, 339 &features_attr.attr, 340 NULL 341}; 342 | 214 .name = "compilation", 215 .attrs = xen_compile_attrs, 216}; 217 218static int __init xen_compilation_init(void) 219{ 220 return sysfs_create_group(hypervisor_kobj, &xen_compilation_group); 221} --- 113 unchanged lines hidden (view full) --- 335 &capabilities_attr.attr, 336 &changeset_attr.attr, 337 &virtual_start_attr.attr, 338 &pagesize_attr.attr, 339 &features_attr.attr, 340 NULL 341}; 342 |
343static struct attribute_group xen_properties_group = { | 343static const struct attribute_group xen_properties_group = { |
344 .name = "properties", 345 .attrs = xen_properties_attrs, 346}; 347 348static int __init xen_properties_init(void) 349{ 350 return sysfs_create_group(hypervisor_kobj, &xen_properties_group); 351} --- 96 unchanged lines hidden --- | 344 .name = "properties", 345 .attrs = xen_properties_attrs, 346}; 347 348static int __init xen_properties_init(void) 349{ 350 return sysfs_create_group(hypervisor_kobj, &xen_properties_group); 351} --- 96 unchanged lines hidden --- |