aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2014-02-17 12:45:18 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2014-02-28 15:26:23 -0500
commitc06f8111792bd35f831c1dc7dbec536d6ba204ac (patch)
treed13fe2f6884bdfbec4715763891712d8924a1a92
parent4201cdbd6cde19a69b862984ef674ce667d526e1 (diff)
xen/xenbus: remove unused xenbus_bind_evtchn()
xenbus_bind_evtchn() has no callers so remove it. Signed-off-by: David Vrabel <david.vrabel@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
-rw-r--r--drivers/xen/xenbus/xenbus_client.c27
-rw-r--r--include/xen/xenbus.h1
2 files changed, 0 insertions, 28 deletions
diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c
index 01d59e66565d..439c9dca9eee 100644
--- a/drivers/xen/xenbus/xenbus_client.c
+++ b/drivers/xen/xenbus/xenbus_client.c
@@ -401,33 +401,6 @@ EXPORT_SYMBOL_GPL(xenbus_alloc_evtchn);
401 401
402 402
403/** 403/**
404 * Bind to an existing interdomain event channel in another domain. Returns 0
405 * on success and stores the local port in *port. On error, returns -errno,
406 * switches the device to XenbusStateClosing, and saves the error in XenStore.
407 */
408int xenbus_bind_evtchn(struct xenbus_device *dev, int remote_port, int *port)
409{
410 struct evtchn_bind_interdomain bind_interdomain;
411 int err;
412
413 bind_interdomain.remote_dom = dev->otherend_id;
414 bind_interdomain.remote_port = remote_port;
415
416 err = HYPERVISOR_event_channel_op(EVTCHNOP_bind_interdomain,
417 &bind_interdomain);
418 if (err)
419 xenbus_dev_fatal(dev, err,
420 "binding to event channel %d from domain %d",
421 remote_port, dev->otherend_id);
422 else
423 *port = bind_interdomain.local_port;
424
425 return err;
426}
427EXPORT_SYMBOL_GPL(xenbus_bind_evtchn);
428
429
430/**
431 * Free an existing event channel. Returns 0 on success or -errno on error. 404 * Free an existing event channel. Returns 0 on success or -errno on error.
432 */ 405 */
433int xenbus_free_evtchn(struct xenbus_device *dev, int port) 406int xenbus_free_evtchn(struct xenbus_device *dev, int port)
diff --git a/include/xen/xenbus.h b/include/xen/xenbus.h
index 569c07f2e344..0324c6d340c1 100644
--- a/include/xen/xenbus.h
+++ b/include/xen/xenbus.h
@@ -207,7 +207,6 @@ int xenbus_unmap_ring(struct xenbus_device *dev,
207 grant_handle_t handle, void *vaddr); 207 grant_handle_t handle, void *vaddr);
208 208
209int xenbus_alloc_evtchn(struct xenbus_device *dev, int *port); 209int xenbus_alloc_evtchn(struct xenbus_device *dev, int *port);
210int xenbus_bind_evtchn(struct xenbus_device *dev, int remote_port, int *port);
211int xenbus_free_evtchn(struct xenbus_device *dev, int port); 210int xenbus_free_evtchn(struct xenbus_device *dev, int port);
212 211
213enum xenbus_state xenbus_read_driver_state(const char *path); 212enum xenbus_state xenbus_read_driver_state(const char *path);