]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
xenbus: properly qualify all static 'struct xenbus_device_id' instances
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Mar 2008 17:29:05 +0000 (17:29 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Mar 2008 17:29:05 +0000 (17:29 +0000)
include/xen/xenbus.h nicely declares struct xenbus_driver's 'ids'
member as pointer to const...

Signed-off-by: Jan Beulich <jbeulich@novell.com>
drivers/xen/blkback/xenbus.c
drivers/xen/blkfront/blkfront.c
drivers/xen/blktap/xenbus.c
drivers/xen/fbfront/xenfb.c
drivers/xen/fbfront/xenkbd.c
drivers/xen/netback/xenbus.c
drivers/xen/netfront/netfront.c
drivers/xen/pciback/xenbus.c
drivers/xen/pcifront/xenbus.c
drivers/xen/tpmback/xenbus.c

index a9564b996c99d3f1c4f79939feb5dabb24d39c1b..f4309614f5e34f5c3018e61e81a16064aae67503 100644 (file)
@@ -511,7 +511,7 @@ static int connect_ring(struct backend_info *be)
 /* ** Driver Registration ** */
 
 
-static struct xenbus_device_id blkback_ids[] = {
+static const struct xenbus_device_id blkback_ids[] = {
        { "vbd" },
        { "" }
 };
index 815ea88f83421a487e6c8757a3becb8bb1efdfe8..6410939e757f8fed63785ad43c7d7bd0e515ad5a 100644 (file)
@@ -885,7 +885,7 @@ int blkfront_is_ready(struct xenbus_device *dev)
 /* ** Driver Registration ** */
 
 
-static struct xenbus_device_id blkfront_ids[] = {
+static const struct xenbus_device_id blkfront_ids[] = {
        { "vbd" },
        { "" }
 };
index 9c5420c90ab5566134955cd5cfab589efa8065fe..3b254a371edaed38c111f4ce2107afd7b13e7de8 100644 (file)
@@ -455,7 +455,7 @@ static int connect_ring(struct backend_info *be)
 /* ** Driver Registration ** */
 
 
-static struct xenbus_device_id blktap_ids[] = {
+static const struct xenbus_device_id blktap_ids[] = {
        { "tap" },
        { "" }
 };
index 3606aedfb533f4702de71195a49ac6877fb8a1bd..5e14799ae5495063a55df29b827bb8c67a278267 100644 (file)
@@ -721,7 +721,7 @@ static void xenfb_backend_changed(struct xenbus_device *dev,
        }
 }
 
-static struct xenbus_device_id xenfb_ids[] = {
+static const struct xenbus_device_id xenfb_ids[] = {
        { "vfb" },
        { "" }
 };
index fd5ca117cb088b40f22361ec22e82082e8f7f708..6bba9f49eabd90124c83cf165f699dcacfd104e0 100644 (file)
@@ -305,7 +305,7 @@ static void xenkbd_backend_changed(struct xenbus_device *dev,
        }
 }
 
-static struct xenbus_device_id xenkbd_ids[] = {
+static const struct xenbus_device_id xenkbd_ids[] = {
        { "vkbd" },
        { "" }
 };
index c5018ea3370332e24b66de3643bd04d4823d20ba..78c8cbf9aed84b9a78cdc7d38d34facbfd4f5db8 100644 (file)
@@ -429,7 +429,7 @@ static int connect_rings(struct backend_info *be)
 /* ** Driver Registration ** */
 
 
-static struct xenbus_device_id netback_ids[] = {
+static const struct xenbus_device_id netback_ids[] = {
        { "vif" },
        { "" }
 };
index 108022b97f9305b11b68b808c8b88d4229ad15cb..150676b7e3f32a15dd18ce2166b53171dae37dde 100644 (file)
@@ -2154,7 +2154,7 @@ static void end_access(int ref, void *page)
 /* ** Driver registration ** */
 
 
-static struct xenbus_device_id netfront_ids[] = {
+static const struct xenbus_device_id netfront_ids[] = {
        { "vif" },
        { "" }
 };
index 7900375b5922a8ba83801cddf468aeef67a40800..aefd1a4abdc4d249d19657c32ad7618c5be4ed6b 100644 (file)
@@ -652,7 +652,7 @@ static int pciback_xenbus_remove(struct xenbus_device *dev)
        return 0;
 }
 
-static struct xenbus_device_id xenpci_ids[] = {
+static const struct xenbus_device_id xenpci_ids[] = {
        {"pci"},
        {{0}},
 };
index 47dd92372273ab173e4941155f3ed2a16cb1a863..aa1376659f12f3fbc05194dbc14b46b392b34c6e 100644 (file)
@@ -423,7 +423,7 @@ static int pcifront_xenbus_remove(struct xenbus_device *xdev)
        return 0;
 }
 
-static struct xenbus_device_id xenpci_ids[] = {
+static const struct xenbus_device_id xenpci_ids[] = {
        {"pci"},
        {{0}},
 };
index f48b0e3726c6677295098a42fad91b7c24572def..54affa7b663f0b30f596f88c9293d211913eabb2 100644 (file)
@@ -262,7 +262,7 @@ static int connect_ring(struct backend_info *be)
 }
 
 
-static struct xenbus_device_id tpmback_ids[] = {
+static const struct xenbus_device_id tpmback_ids[] = {
        { "vtpm" },
        { "" }
 };