[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] drivers/xen/: constify all instances of "struct attribute_group"



# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxx>
# Date 1330085515 -3600
# Node ID 5259389e19dcf76941c0ec57dee8ab37c5d850d5
# Parent  98c00677dacbbcf1419eb08036077e63c4fd26d4
drivers/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@xxxxxxxx>
---


diff -r 98c00677dacb -r 5259389e19dc drivers/xen/balloon/sysfs.c
--- a/drivers/xen/balloon/sysfs.c       Thu Feb 16 08:52:06 2012 +0100
+++ b/drivers/xen/balloon/sysfs.c       Fri Feb 24 13:11:55 2012 +0100
@@ -97,7 +97,7 @@
        NULL
 };
 
-static struct attribute_group balloon_info_group = {
+static const struct attribute_group balloon_info_group = {
        .name = "info",
        .attrs = balloon_info_attrs,
 };
diff -r 98c00677dacb -r 5259389e19dc drivers/xen/blkback/xenbus.c
--- a/drivers/xen/blkback/xenbus.c      Thu Feb 16 08:52:06 2012 +0100
+++ b/drivers/xen/blkback/xenbus.c      Fri Feb 24 13:11:55 2012 +0100
@@ -136,7 +136,7 @@
        NULL
 };
 
-static struct attribute_group vbdstat_group = {
+static const struct attribute_group vbdstat_group = {
        .name = "statistics",
        .attrs = vbdstat_attrs,
 };
diff -r 98c00677dacb -r 5259389e19dc drivers/xen/blktap/xenbus.c
--- a/drivers/xen/blktap/xenbus.c       Thu Feb 16 08:52:06 2012 +0100
+++ b/drivers/xen/blktap/xenbus.c       Fri Feb 24 13:11:55 2012 +0100
@@ -152,7 +152,7 @@
        NULL
 };
 
-static struct attribute_group tapstat_group = {
+static const struct attribute_group tapstat_group = {
        .name = "statistics",
        .attrs = tapstat_attrs,
 };
diff -r 98c00677dacb -r 5259389e19dc drivers/xen/core/xen_sysfs.c
--- a/drivers/xen/core/xen_sysfs.c      Thu Feb 16 08:52:06 2012 +0100
+++ b/drivers/xen/core/xen_sysfs.c      Fri Feb 24 13:11:55 2012 +0100
@@ -84,7 +84,7 @@
        NULL
 };
 
-static struct attribute_group version_group = {
+static const struct attribute_group version_group = {
        .name = "version",
        .attrs = version_attrs,
 };
@@ -197,12 +197,12 @@
        NULL
 };
 
-static struct attribute_group xen_compilation_group = {
+static const struct attribute_group xen_compilation_group = {
        .name = "compilation",
        .attrs = xen_compile_attrs,
 };
 
-int __init static xen_compilation_init(void)
+static int __init xen_compilation_init(void)
 {
        return sysfs_create_group(&hypervisor_subsys.kset.kobj,
                                  &xen_compilation_group);
@@ -318,7 +318,7 @@
        NULL
 };
 
-static struct attribute_group xen_properties_group = {
+static const struct attribute_group xen_properties_group = {
        .name = "properties",
        .attrs = xen_properties_attrs,
 };

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.