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

[Xen-changelog] [linux-2.6.18-xen] xenbus: properly qualify all static 'struct xenbus_device_id' instances



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1204738145 0
# Node ID ba72914de93a6fb2c5fc80e7791dc3fdf82a7ed3
# Parent  5baef0e18e36cd886d99181a15a79bf392ea0688
xenbus: properly qualify all static 'struct xenbus_device_id' instances

include/xen/xenbus.h nicely declares struct xenbus_driver's 'ids'
member as pointer to const...

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 drivers/xen/blkback/xenbus.c    |    2 +-
 drivers/xen/blkfront/blkfront.c |    2 +-
 drivers/xen/blktap/xenbus.c     |    2 +-
 drivers/xen/fbfront/xenfb.c     |    2 +-
 drivers/xen/fbfront/xenkbd.c    |    2 +-
 drivers/xen/netback/xenbus.c    |    2 +-
 drivers/xen/netfront/netfront.c |    2 +-
 drivers/xen/pciback/xenbus.c    |    2 +-
 drivers/xen/pcifront/xenbus.c   |    2 +-
 drivers/xen/tpmback/xenbus.c    |    2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)

diff -r 5baef0e18e36 -r ba72914de93a drivers/xen/blkback/xenbus.c
--- a/drivers/xen/blkback/xenbus.c      Wed Mar 05 17:28:41 2008 +0000
+++ b/drivers/xen/blkback/xenbus.c      Wed Mar 05 17:29:05 2008 +0000
@@ -511,7 +511,7 @@ static int connect_ring(struct backend_i
 /* ** Driver Registration ** */
 
 
-static struct xenbus_device_id blkback_ids[] = {
+static const struct xenbus_device_id blkback_ids[] = {
        { "vbd" },
        { "" }
 };
diff -r 5baef0e18e36 -r ba72914de93a drivers/xen/blkfront/blkfront.c
--- a/drivers/xen/blkfront/blkfront.c   Wed Mar 05 17:28:41 2008 +0000
+++ b/drivers/xen/blkfront/blkfront.c   Wed Mar 05 17:29:05 2008 +0000
@@ -885,7 +885,7 @@ int blkfront_is_ready(struct xenbus_devi
 /* ** Driver Registration ** */
 
 
-static struct xenbus_device_id blkfront_ids[] = {
+static const struct xenbus_device_id blkfront_ids[] = {
        { "vbd" },
        { "" }
 };
diff -r 5baef0e18e36 -r ba72914de93a drivers/xen/blktap/xenbus.c
--- a/drivers/xen/blktap/xenbus.c       Wed Mar 05 17:28:41 2008 +0000
+++ b/drivers/xen/blktap/xenbus.c       Wed Mar 05 17:29:05 2008 +0000
@@ -455,7 +455,7 @@ static int connect_ring(struct backend_i
 /* ** Driver Registration ** */
 
 
-static struct xenbus_device_id blktap_ids[] = {
+static const struct xenbus_device_id blktap_ids[] = {
        { "tap" },
        { "" }
 };
diff -r 5baef0e18e36 -r ba72914de93a drivers/xen/fbfront/xenfb.c
--- a/drivers/xen/fbfront/xenfb.c       Wed Mar 05 17:28:41 2008 +0000
+++ b/drivers/xen/fbfront/xenfb.c       Wed Mar 05 17:29:05 2008 +0000
@@ -721,7 +721,7 @@ static void xenfb_backend_changed(struct
        }
 }
 
-static struct xenbus_device_id xenfb_ids[] = {
+static const struct xenbus_device_id xenfb_ids[] = {
        { "vfb" },
        { "" }
 };
diff -r 5baef0e18e36 -r ba72914de93a drivers/xen/fbfront/xenkbd.c
--- a/drivers/xen/fbfront/xenkbd.c      Wed Mar 05 17:28:41 2008 +0000
+++ b/drivers/xen/fbfront/xenkbd.c      Wed Mar 05 17:29:05 2008 +0000
@@ -305,7 +305,7 @@ static void xenkbd_backend_changed(struc
        }
 }
 
-static struct xenbus_device_id xenkbd_ids[] = {
+static const struct xenbus_device_id xenkbd_ids[] = {
        { "vkbd" },
        { "" }
 };
diff -r 5baef0e18e36 -r ba72914de93a drivers/xen/netback/xenbus.c
--- a/drivers/xen/netback/xenbus.c      Wed Mar 05 17:28:41 2008 +0000
+++ b/drivers/xen/netback/xenbus.c      Wed Mar 05 17:29:05 2008 +0000
@@ -429,7 +429,7 @@ static int connect_rings(struct backend_
 /* ** Driver Registration ** */
 
 
-static struct xenbus_device_id netback_ids[] = {
+static const struct xenbus_device_id netback_ids[] = {
        { "vif" },
        { "" }
 };
diff -r 5baef0e18e36 -r ba72914de93a drivers/xen/netfront/netfront.c
--- a/drivers/xen/netfront/netfront.c   Wed Mar 05 17:28:41 2008 +0000
+++ b/drivers/xen/netfront/netfront.c   Wed Mar 05 17:29:05 2008 +0000
@@ -2154,7 +2154,7 @@ static void end_access(int ref, void *pa
 /* ** Driver registration ** */
 
 
-static struct xenbus_device_id netfront_ids[] = {
+static const struct xenbus_device_id netfront_ids[] = {
        { "vif" },
        { "" }
 };
diff -r 5baef0e18e36 -r ba72914de93a drivers/xen/pciback/xenbus.c
--- a/drivers/xen/pciback/xenbus.c      Wed Mar 05 17:28:41 2008 +0000
+++ b/drivers/xen/pciback/xenbus.c      Wed Mar 05 17:29:05 2008 +0000
@@ -652,7 +652,7 @@ static int pciback_xenbus_remove(struct 
        return 0;
 }
 
-static struct xenbus_device_id xenpci_ids[] = {
+static const struct xenbus_device_id xenpci_ids[] = {
        {"pci"},
        {{0}},
 };
diff -r 5baef0e18e36 -r ba72914de93a drivers/xen/pcifront/xenbus.c
--- a/drivers/xen/pcifront/xenbus.c     Wed Mar 05 17:28:41 2008 +0000
+++ b/drivers/xen/pcifront/xenbus.c     Wed Mar 05 17:29:05 2008 +0000
@@ -423,7 +423,7 @@ static int pcifront_xenbus_remove(struct
        return 0;
 }
 
-static struct xenbus_device_id xenpci_ids[] = {
+static const struct xenbus_device_id xenpci_ids[] = {
        {"pci"},
        {{0}},
 };
diff -r 5baef0e18e36 -r ba72914de93a drivers/xen/tpmback/xenbus.c
--- a/drivers/xen/tpmback/xenbus.c      Wed Mar 05 17:28:41 2008 +0000
+++ b/drivers/xen/tpmback/xenbus.c      Wed Mar 05 17:29:05 2008 +0000
@@ -262,7 +262,7 @@ static int connect_ring(struct backend_i
 }
 
 
-static struct xenbus_device_id tpmback_ids[] = {
+static const struct xenbus_device_id tpmback_ids[] = {
        { "vtpm" },
        { "" }
 };

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
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®.