Skip to contentSkip to conversation

linux: properly qualify all static 'struct xenbus_device_id' instances

PATCH New Jan Beulich 1 participant 1 message Mar 5, 2008 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux: 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...

As usual, written and tested on 2.6.25-rc3 and made apply to the 2.6.18 tree without further testing.

drivers/xen/blkback/xenbus.c +1 -1
Index: head-2008-02-26/drivers/xen/blkback/xenbus.c
===================================================================
@@ -518,7 +518,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" },
 	{ "" }
 };
drivers/xen/blkfront/blkfront.c +1 -1
Index: head-2008-02-26/drivers/xen/blkfront/blkfront.c
===================================================================
@@ -879,7 +879,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" },
 	{ "" }
 };
drivers/xen/blktap/xenbus.c +1 -1
Index: head-2008-02-26/drivers/xen/blktap/xenbus.c
===================================================================
@@ -463,7 +463,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" },
 	{ "" }
 };
drivers/xen/fbfront/xenfb.c +1 -1
Index: head-2008-02-26/drivers/xen/fbfront/xenfb.c
===================================================================
@@ -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" },
 	{ "" }
 };
drivers/xen/fbfront/xenkbd.c +1 -1
Index: head-2008-02-26/drivers/xen/fbfront/xenkbd.c
===================================================================
@@ -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" },
 	{ "" }
 };
drivers/xen/netback/xenbus.c +1 -1
Index: head-2008-02-26/drivers/xen/netback/xenbus.c
===================================================================
@@ -423,7 +423,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" },
 	{ "" }
 };
drivers/xen/netfront/netfront.c +1 -1
Index: head-2008-02-26/drivers/xen/netfront/netfront.c
===================================================================
@@ -2142,7 +2142,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" },
 	{ "" }
 };
drivers/xen/pciback/xenbus.c +1 -1
Index: head-2008-02-26/drivers/xen/pciback/xenbus.c
===================================================================
@@ -651,7 +651,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}},
 };
drivers/xen/pcifront/xenbus.c +1 -1
Index: head-2008-02-26/drivers/xen/pcifront/xenbus.c
===================================================================
@@ -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}},
 };
drivers/xen/tpmback/xenbus.c +1 -1
Index: head-2008-02-26/drivers/xen/tpmback/xenbus.c
===================================================================
@@ -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" },
 	{ "" }
 };