linux: properly qualify all static 'struct xenbus_device_id' instances
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.
Signed-off-by Jan Beulich <[email protected]>
drivers/xen/blkback/xenbus.c +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -651,7 +651,7 @@ static int pciback_xenbus_remove(structreturn 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
@@ -423,7 +423,7 @@ static int pcifront_xenbus_remove(structreturn 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
@@ -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" }, {"" } };