diff options
| -rw-r--r-- | drivers/block/xen-blkback/xenbus.c | 6 | ||||
| -rw-r--r-- | drivers/net/xen-netback/xenbus.c | 8 | ||||
| -rw-r--r-- | drivers/xen/cpu_hotplug.c | 5 | ||||
| -rw-r--r-- | drivers/xen/manage.c | 6 | ||||
| -rw-r--r-- | drivers/xen/xen-balloon.c | 2 | ||||
| -rw-r--r-- | drivers/xen/xen-pciback/xenbus.c | 2 | ||||
| -rw-r--r-- | drivers/xen/xenbus/xenbus.h | 6 | ||||
| -rw-r--r-- | drivers/xen/xenbus/xenbus_client.c | 4 | ||||
| -rw-r--r-- | drivers/xen/xenbus/xenbus_dev_frontend.c | 21 | ||||
| -rw-r--r-- | drivers/xen/xenbus/xenbus_probe.c | 11 | ||||
| -rw-r--r-- | drivers/xen/xenbus/xenbus_probe_backend.c | 8 | ||||
| -rw-r--r-- | drivers/xen/xenbus/xenbus_probe_frontend.c | 14 | ||||
| -rw-r--r-- | drivers/xen/xenbus/xenbus_xs.c | 29 | ||||
| -rw-r--r-- | include/xen/xenbus.h | 6 |
14 files changed, 59 insertions, 69 deletions
diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c index 415e79b69d34..8fe61b5dc5a6 100644 --- a/drivers/block/xen-blkback/xenbus.c +++ b/drivers/block/xen-blkback/xenbus.c | |||
| @@ -38,8 +38,8 @@ struct backend_info { | |||
| 38 | static struct kmem_cache *xen_blkif_cachep; | 38 | static struct kmem_cache *xen_blkif_cachep; |
| 39 | static void connect(struct backend_info *); | 39 | static void connect(struct backend_info *); |
| 40 | static int connect_ring(struct backend_info *); | 40 | static int connect_ring(struct backend_info *); |
| 41 | static void backend_changed(struct xenbus_watch *, const char **, | 41 | static void backend_changed(struct xenbus_watch *, const char *, |
| 42 | unsigned int); | 42 | const char *); |
| 43 | static void xen_blkif_free(struct xen_blkif *blkif); | 43 | static void xen_blkif_free(struct xen_blkif *blkif); |
| 44 | static void xen_vbd_free(struct xen_vbd *vbd); | 44 | static void xen_vbd_free(struct xen_vbd *vbd); |
| 45 | 45 | ||
| @@ -661,7 +661,7 @@ fail: | |||
| 661 | * ready, connect. | 661 | * ready, connect. |
| 662 | */ | 662 | */ |
| 663 | static void backend_changed(struct xenbus_watch *watch, | 663 | static void backend_changed(struct xenbus_watch *watch, |
| 664 | const char **vec, unsigned int len) | 664 | const char *path, const char *token) |
| 665 | { | 665 | { |
| 666 | int err; | 666 | int err; |
| 667 | unsigned major; | 667 | unsigned major; |
diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index 85b742e1c42f..bb854f92f5a5 100644 --- a/drivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c | |||
| @@ -734,7 +734,7 @@ static int xen_net_read_mac(struct xenbus_device *dev, u8 mac[]) | |||
| 734 | } | 734 | } |
| 735 | 735 | ||
| 736 | static void xen_net_rate_changed(struct xenbus_watch *watch, | 736 | static void xen_net_rate_changed(struct xenbus_watch *watch, |
| 737 | const char **vec, unsigned int len) | 737 | const char *path, const char *token) |
| 738 | { | 738 | { |
| 739 | struct xenvif *vif = container_of(watch, struct xenvif, credit_watch); | 739 | struct xenvif *vif = container_of(watch, struct xenvif, credit_watch); |
| 740 | struct xenbus_device *dev = xenvif_to_xenbus_device(vif); | 740 | struct xenbus_device *dev = xenvif_to_xenbus_device(vif); |
| @@ -791,7 +791,7 @@ static void xen_unregister_credit_watch(struct xenvif *vif) | |||
| 791 | } | 791 | } |
| 792 | 792 | ||
| 793 | static void xen_mcast_ctrl_changed(struct xenbus_watch *watch, | 793 | static void xen_mcast_ctrl_changed(struct xenbus_watch *watch, |
| 794 | const char **vec, unsigned int len) | 794 | const char *path, const char *token) |
| 795 | { | 795 | { |
| 796 | struct xenvif *vif = container_of(watch, struct xenvif, | 796 | struct xenvif *vif = container_of(watch, struct xenvif, |
| 797 | mcast_ctrl_watch); | 797 | mcast_ctrl_watch); |
| @@ -866,8 +866,8 @@ static void unregister_hotplug_status_watch(struct backend_info *be) | |||
| 866 | } | 866 | } |
| 867 | 867 | ||
| 868 | static void hotplug_status_changed(struct xenbus_watch *watch, | 868 | static void hotplug_status_changed(struct xenbus_watch *watch, |
| 869 | const char **vec, | 869 | const char *path, |
| 870 | unsigned int vec_size) | 870 | const char *token) |
| 871 | { | 871 | { |
| 872 | struct backend_info *be = container_of(watch, | 872 | struct backend_info *be = container_of(watch, |
| 873 | struct backend_info, | 873 | struct backend_info, |
diff --git a/drivers/xen/cpu_hotplug.c b/drivers/xen/cpu_hotplug.c index 0bab60a37464..0003912a8111 100644 --- a/drivers/xen/cpu_hotplug.c +++ b/drivers/xen/cpu_hotplug.c | |||
| @@ -68,13 +68,12 @@ static void vcpu_hotplug(unsigned int cpu) | |||
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | static void handle_vcpu_hotplug_event(struct xenbus_watch *watch, | 70 | static void handle_vcpu_hotplug_event(struct xenbus_watch *watch, |
| 71 | const char **vec, unsigned int len) | 71 | const char *path, const char *token) |
| 72 | { | 72 | { |
| 73 | unsigned int cpu; | 73 | unsigned int cpu; |
| 74 | char *cpustr; | 74 | char *cpustr; |
| 75 | const char *node = vec[XS_WATCH_PATH]; | ||
| 76 | 75 | ||
| 77 | cpustr = strstr(node, "cpu/"); | 76 | cpustr = strstr(path, "cpu/"); |
| 78 | if (cpustr != NULL) { | 77 | if (cpustr != NULL) { |
| 79 | sscanf(cpustr, "cpu/%u", &cpu); | 78 | sscanf(cpustr, "cpu/%u", &cpu); |
| 80 | vcpu_hotplug(cpu); | 79 | vcpu_hotplug(cpu); |
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c index 357a8db859c9..c1ec8ee80924 100644 --- a/drivers/xen/manage.c +++ b/drivers/xen/manage.c | |||
| @@ -218,7 +218,7 @@ static struct shutdown_handler shutdown_handlers[] = { | |||
| 218 | }; | 218 | }; |
| 219 | 219 | ||
| 220 | static void shutdown_handler(struct xenbus_watch *watch, | 220 | static void shutdown_handler(struct xenbus_watch *watch, |
| 221 | const char **vec, unsigned int len) | 221 | const char *path, const char *token) |
| 222 | { | 222 | { |
| 223 | char *str; | 223 | char *str; |
| 224 | struct xenbus_transaction xbt; | 224 | struct xenbus_transaction xbt; |
| @@ -266,8 +266,8 @@ static void shutdown_handler(struct xenbus_watch *watch, | |||
| 266 | } | 266 | } |
| 267 | 267 | ||
| 268 | #ifdef CONFIG_MAGIC_SYSRQ | 268 | #ifdef CONFIG_MAGIC_SYSRQ |
| 269 | static void sysrq_handler(struct xenbus_watch *watch, const char **vec, | 269 | static void sysrq_handler(struct xenbus_watch *watch, const char *path, |
| 270 | unsigned int len) | 270 | const char *token) |
| 271 | { | 271 | { |
| 272 | char sysrq_key = '\0'; | 272 | char sysrq_key = '\0'; |
| 273 | struct xenbus_transaction xbt; | 273 | struct xenbus_transaction xbt; |
diff --git a/drivers/xen/xen-balloon.c b/drivers/xen/xen-balloon.c index 79865b8901ba..e7715cb62eef 100644 --- a/drivers/xen/xen-balloon.c +++ b/drivers/xen/xen-balloon.c | |||
| @@ -55,7 +55,7 @@ static int register_balloon(struct device *dev); | |||
| 55 | 55 | ||
| 56 | /* React to a change in the target key */ | 56 | /* React to a change in the target key */ |
| 57 | static void watch_target(struct xenbus_watch *watch, | 57 | static void watch_target(struct xenbus_watch *watch, |
| 58 | const char **vec, unsigned int len) | 58 | const char *path, const char *token) |
| 59 | { | 59 | { |
| 60 | unsigned long long new_target; | 60 | unsigned long long new_target; |
| 61 | int err; | 61 | int err; |
diff --git a/drivers/xen/xen-pciback/xenbus.c b/drivers/xen/xen-pciback/xenbus.c index 3f0aee0a068b..3814b44bf1f7 100644 --- a/drivers/xen/xen-pciback/xenbus.c +++ b/drivers/xen/xen-pciback/xenbus.c | |||
| @@ -652,7 +652,7 @@ out: | |||
| 652 | } | 652 | } |
| 653 | 653 | ||
| 654 | static void xen_pcibk_be_watch(struct xenbus_watch *watch, | 654 | static void xen_pcibk_be_watch(struct xenbus_watch *watch, |
| 655 | const char **vec, unsigned int len) | 655 | const char *path, const char *token) |
| 656 | { | 656 | { |
| 657 | struct xen_pcibk_device *pdev = | 657 | struct xen_pcibk_device *pdev = |
| 658 | container_of(watch, struct xen_pcibk_device, be_watch); | 658 | container_of(watch, struct xen_pcibk_device, be_watch); |
diff --git a/drivers/xen/xenbus/xenbus.h b/drivers/xen/xenbus/xenbus.h index a6b007dfdaa8..51995276f549 100644 --- a/drivers/xen/xenbus/xenbus.h +++ b/drivers/xen/xenbus/xenbus.h | |||
| @@ -40,8 +40,8 @@ struct xen_bus_type { | |||
| 40 | int (*get_bus_id)(char bus_id[XEN_BUS_ID_SIZE], const char *nodename); | 40 | int (*get_bus_id)(char bus_id[XEN_BUS_ID_SIZE], const char *nodename); |
| 41 | int (*probe)(struct xen_bus_type *bus, const char *type, | 41 | int (*probe)(struct xen_bus_type *bus, const char *type, |
| 42 | const char *dir); | 42 | const char *dir); |
| 43 | void (*otherend_changed)(struct xenbus_watch *watch, const char **vec, | 43 | void (*otherend_changed)(struct xenbus_watch *watch, const char *path, |
| 44 | unsigned int len); | 44 | const char *token); |
| 45 | struct bus_type bus; | 45 | struct bus_type bus; |
| 46 | }; | 46 | }; |
| 47 | 47 | ||
| @@ -84,7 +84,7 @@ int xenbus_dev_resume(struct device *dev); | |||
| 84 | int xenbus_dev_cancel(struct device *dev); | 84 | int xenbus_dev_cancel(struct device *dev); |
| 85 | 85 | ||
| 86 | void xenbus_otherend_changed(struct xenbus_watch *watch, | 86 | void xenbus_otherend_changed(struct xenbus_watch *watch, |
| 87 | const char **vec, unsigned int len, | 87 | const char *path, const char *token, |
| 88 | int ignore_on_shutdown); | 88 | int ignore_on_shutdown); |
| 89 | 89 | ||
| 90 | int xenbus_read_otherend_details(struct xenbus_device *xendev, | 90 | int xenbus_read_otherend_details(struct xenbus_device *xendev, |
diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c index 29f82338ab75..82a8866758ee 100644 --- a/drivers/xen/xenbus/xenbus_client.c +++ b/drivers/xen/xenbus/xenbus_client.c | |||
| @@ -115,7 +115,7 @@ EXPORT_SYMBOL_GPL(xenbus_strstate); | |||
| 115 | int xenbus_watch_path(struct xenbus_device *dev, const char *path, | 115 | int xenbus_watch_path(struct xenbus_device *dev, const char *path, |
| 116 | struct xenbus_watch *watch, | 116 | struct xenbus_watch *watch, |
| 117 | void (*callback)(struct xenbus_watch *, | 117 | void (*callback)(struct xenbus_watch *, |
| 118 | const char **, unsigned int)) | 118 | const char *, const char *)) |
| 119 | { | 119 | { |
| 120 | int err; | 120 | int err; |
| 121 | 121 | ||
| @@ -153,7 +153,7 @@ EXPORT_SYMBOL_GPL(xenbus_watch_path); | |||
| 153 | int xenbus_watch_pathfmt(struct xenbus_device *dev, | 153 | int xenbus_watch_pathfmt(struct xenbus_device *dev, |
| 154 | struct xenbus_watch *watch, | ||
