Skip to content

Commit c06f811

Browse files
David Vrabelkonradwilk
authored andcommitted
xen/xenbus: remove unused xenbus_bind_evtchn()
xenbus_bind_evtchn() has no callers so remove it. Signed-off-by: David Vrabel <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]>
1 parent 4201cdb commit c06f811

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

drivers/xen/xenbus/xenbus_client.c

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -400,33 +400,6 @@ int xenbus_alloc_evtchn(struct xenbus_device *dev, int *port)
400400
EXPORT_SYMBOL_GPL(xenbus_alloc_evtchn);
401401

402402

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-
*/
408-
int 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-
}
427-
EXPORT_SYMBOL_GPL(xenbus_bind_evtchn);
428-
429-
430403
/**
431404
* Free an existing event channel. Returns 0 on success or -errno on error.
432405
*/

include/xen/xenbus.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ int xenbus_unmap_ring(struct xenbus_device *dev,
207207
grant_handle_t handle, void *vaddr);
208208

209209
int xenbus_alloc_evtchn(struct xenbus_device *dev, int *port);
210-
int xenbus_bind_evtchn(struct xenbus_device *dev, int remote_port, int *port);
211210
int xenbus_free_evtchn(struct xenbus_device *dev, int port);
212211

213212
enum xenbus_state xenbus_read_driver_state(const char *path);

0 commit comments

Comments
 (0)