ia64/linux-2.6.18-xen.hg

changeset 471:ba72914de93a

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@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Mar 05 17:29:05 2008 +0000 (2008-03-05)
parents 5baef0e18e36
children 3983b041fc51
files 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
line diff
     1.1 --- a/drivers/xen/blkback/xenbus.c	Wed Mar 05 17:28:41 2008 +0000
     1.2 +++ b/drivers/xen/blkback/xenbus.c	Wed Mar 05 17:29:05 2008 +0000
     1.3 @@ -511,7 +511,7 @@ static int connect_ring(struct backend_i
     1.4  /* ** Driver Registration ** */
     1.5  
     1.6  
     1.7 -static struct xenbus_device_id blkback_ids[] = {
     1.8 +static const struct xenbus_device_id blkback_ids[] = {
     1.9  	{ "vbd" },
    1.10  	{ "" }
    1.11  };
     2.1 --- a/drivers/xen/blkfront/blkfront.c	Wed Mar 05 17:28:41 2008 +0000
     2.2 +++ b/drivers/xen/blkfront/blkfront.c	Wed Mar 05 17:29:05 2008 +0000
     2.3 @@ -885,7 +885,7 @@ int blkfront_is_ready(struct xenbus_devi
     2.4  /* ** Driver Registration ** */
     2.5  
     2.6  
     2.7 -static struct xenbus_device_id blkfront_ids[] = {
     2.8 +static const struct xenbus_device_id blkfront_ids[] = {
     2.9  	{ "vbd" },
    2.10  	{ "" }
    2.11  };
     3.1 --- a/drivers/xen/blktap/xenbus.c	Wed Mar 05 17:28:41 2008 +0000
     3.2 +++ b/drivers/xen/blktap/xenbus.c	Wed Mar 05 17:29:05 2008 +0000
     3.3 @@ -455,7 +455,7 @@ static int connect_ring(struct backend_i
     3.4  /* ** Driver Registration ** */
     3.5  
     3.6  
     3.7 -static struct xenbus_device_id blktap_ids[] = {
     3.8 +static const struct xenbus_device_id blktap_ids[] = {
     3.9  	{ "tap" },
    3.10  	{ "" }
    3.11  };
     4.1 --- a/drivers/xen/fbfront/xenfb.c	Wed Mar 05 17:28:41 2008 +0000
     4.2 +++ b/drivers/xen/fbfront/xenfb.c	Wed Mar 05 17:29:05 2008 +0000
     4.3 @@ -721,7 +721,7 @@ static void xenfb_backend_changed(struct
     4.4  	}
     4.5  }
     4.6  
     4.7 -static struct xenbus_device_id xenfb_ids[] = {
     4.8 +static const struct xenbus_device_id xenfb_ids[] = {
     4.9  	{ "vfb" },
    4.10  	{ "" }
    4.11  };
     5.1 --- a/drivers/xen/fbfront/xenkbd.c	Wed Mar 05 17:28:41 2008 +0000
     5.2 +++ b/drivers/xen/fbfront/xenkbd.c	Wed Mar 05 17:29:05 2008 +0000
     5.3 @@ -305,7 +305,7 @@ static void xenkbd_backend_changed(struc
     5.4  	}
     5.5  }
     5.6  
     5.7 -static struct xenbus_device_id xenkbd_ids[] = {
     5.8 +static const struct xenbus_device_id xenkbd_ids[] = {
     5.9  	{ "vkbd" },
    5.10  	{ "" }
    5.11  };
     6.1 --- a/drivers/xen/netback/xenbus.c	Wed Mar 05 17:28:41 2008 +0000
     6.2 +++ b/drivers/xen/netback/xenbus.c	Wed Mar 05 17:29:05 2008 +0000
     6.3 @@ -429,7 +429,7 @@ static int connect_rings(struct backend_
     6.4  /* ** Driver Registration ** */
     6.5  
     6.6  
     6.7 -static struct xenbus_device_id netback_ids[] = {
     6.8 +static const struct xenbus_device_id netback_ids[] = {
     6.9  	{ "vif" },
    6.10  	{ "" }
    6.11  };
     7.1 --- a/drivers/xen/netfront/netfront.c	Wed Mar 05 17:28:41 2008 +0000
     7.2 +++ b/drivers/xen/netfront/netfront.c	Wed Mar 05 17:29:05 2008 +0000
     7.3 @@ -2154,7 +2154,7 @@ static void end_access(int ref, void *pa
     7.4  /* ** Driver registration ** */
     7.5  
     7.6  
     7.7 -static struct xenbus_device_id netfront_ids[] = {
     7.8 +static const struct xenbus_device_id netfront_ids[] = {
     7.9  	{ "vif" },
    7.10  	{ "" }
    7.11  };
     8.1 --- a/drivers/xen/pciback/xenbus.c	Wed Mar 05 17:28:41 2008 +0000
     8.2 +++ b/drivers/xen/pciback/xenbus.c	Wed Mar 05 17:29:05 2008 +0000
     8.3 @@ -652,7 +652,7 @@ static int pciback_xenbus_remove(struct 
     8.4  	return 0;
     8.5  }
     8.6  
     8.7 -static struct xenbus_device_id xenpci_ids[] = {
     8.8 +static const struct xenbus_device_id xenpci_ids[] = {
     8.9  	{"pci"},
    8.10  	{{0}},
    8.11  };
     9.1 --- a/drivers/xen/pcifront/xenbus.c	Wed Mar 05 17:28:41 2008 +0000
     9.2 +++ b/drivers/xen/pcifront/xenbus.c	Wed Mar 05 17:29:05 2008 +0000
     9.3 @@ -423,7 +423,7 @@ static int pcifront_xenbus_remove(struct
     9.4  	return 0;
     9.5  }
     9.6  
     9.7 -static struct xenbus_device_id xenpci_ids[] = {
     9.8 +static const struct xenbus_device_id xenpci_ids[] = {
     9.9  	{"pci"},
    9.10  	{{0}},
    9.11  };
    10.1 --- a/drivers/xen/tpmback/xenbus.c	Wed Mar 05 17:28:41 2008 +0000
    10.2 +++ b/drivers/xen/tpmback/xenbus.c	Wed Mar 05 17:29:05 2008 +0000
    10.3 @@ -262,7 +262,7 @@ static int connect_ring(struct backend_i
    10.4  }
    10.5  
    10.6  
    10.7 -static struct xenbus_device_id tpmback_ids[] = {
    10.8 +static const struct xenbus_device_id tpmback_ids[] = {
    10.9  	{ "vtpm" },
   10.10  	{ "" }
   10.11  };