vhost: drop dead code
PATCH 1/1 vhost: drop dead code
We dropped the implementation of vhost_dev_query,
drop it from the header file as well.
Signed-off-by Michael S. Tsirkin <[email protected]>
--- include/hw/virtio/vhost.h | 1 - 1 file changed, 1 deletion(-)
include/hw/virtio/vhost.h +0 -1
@@ -66,7 +66,6 @@ struct vhost_dev {int vhost_dev_init (struct vhost_dev *hdev,void *opaque,VhostBackendType backend_type);void vhost_dev_cleanup (struct vhost_dev *hdev); -bool vhost_dev_query (struct vhost_dev *hdev,VirtIODevice *vdev);int vhost_dev_start (struct vhost_dev *hdev,VirtIODevice *vdev);void vhost_dev_stop (struct vhost_dev *hdev,VirtIODevice *vdev);int vhost_dev_enable_notifiers (struct vhost_dev *hdev,VirtIODevice *vdev);
Signature · 1 line
MST
Quoted 4 lines · Michael S. Tsirkin
We dropped the implementation of
vhost_dev_query,
drop it from the header file as well.Signed-off-by Michael S. Tsirkin <[email protected]>
Reviewed-by Yuanhan Liu <[email protected]>
--yliu
Quoted 18 lines
--- include/hw/virtio/vhost.h | 1 - 1 file changed, 1 deletion(-)include/hw/virtio/vhost.h +0
-1@@ -66,7 +66,6 @@ struct vhost_dev {int vhost_dev_init (struct vhost_dev *hdev,void *opaque,VhostBackendType backend_type);void vhost_dev_cleanup (struct vhost_dev *hdev); -bool vhost_dev_query (struct vhost_dev *hdev,VirtIODevice *vdev);int vhost_dev_start (struct vhost_dev *hdev,VirtIODevice *vdev);void vhost_dev_stop (struct vhost_dev *hdev,VirtIODevice *vdev);int vhost_dev_enable_notifiers (struct vhost_dev *hdev,VirtIODevice *vdev);Signature · 1 line
MST
Quoted 1 line · Michael S. Tsirkin
We dropped the implementation of
vhost_dev_query,
Might be nice to add "in commit 1e7398a1".
Quoted 7 lines
drop it from the header file as well.
Signed-off-by Michael S. Tsirkin <[email protected]>--- include/hw/virtio/vhost.h | 1 - 1 file changed, 1 deletion(-)
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 13 lines · Michael S. Tsirkin
We dropped the implementation of
vhost_dev_query,
drop it from the header file as well.Signed-off-by Michael S. Tsirkin <[email protected]>--- include/hw/virtio/vhost.h | 1 - 1 file changed, 1 deletion(-)include/hw/virtio/vhost.h +0
-0
include/hw/virtio/vhost.h struct vhost_dev { · line 71
Quoted 7 lines
include/hw/virtio/vhost.h +0
-1@@ -66,7 +66,6 @@ struct vhost_dev {int vhost_dev_init (struct vhost_dev *hdev,void *opaque,VhostBackendType backend_type);void vhost_dev_cleanup (struct vhost_dev *hdev); -bool vhost_dev_query (struct vhost_dev *hdev,VirtIODevice *vdev);int vhost_dev_start (struct vhost_dev *hdev,VirtIODevice *vdev);void vhost_dev_stop (struct vhost_dev *hdev,VirtIODevice *vdev);int vhost_dev_enable_notifiers (struct vhost_dev *hdev,VirtIODevice *vdev);
Acked-by Jason Wang <[email protected]>
Michael Tokarev
AppliedQuoted 2 lines · Michael S. Tsirkin
We dropped the implementation of
vhost_dev_query,
drop it from the header file as well.
Applied to -trivial with a commit message fix suggested by Eric. Thanks!
/mjt