Skip to contentSkip to conversation

vhost: drop dead code

PATCH Applied Michael S. Tsirkin 5 participants 5 messages Dec 2, 2015 – Dec 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vhost: drop dead code

We dropped the implementation of vhost_dev_query,
drop it from the header file as well.

---
 include/hw/virtio/vhost.h | 1 -
 1 file changed, 1 deletion(-)
include/hw/virtio/vhost.h +0 -1
index 7437fd4..b60d758 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Michael S. Tsirkin

We dropped the implementation of vhost_dev_query,
drop it from the header file as well.

	--yliu
Quoted 18 lines
---
 include/hw/virtio/vhost.h | 1 -
 1 file changed, 1 deletion(-)
include/hw/virtio/vhost.h +0 -1
index 7437fd4..b60d758 100644
@@ -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
#2 lore raw
In reply to Michael S. Tsirkin
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.

---
 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
Acked-by on v1 1/1
#3 lore raw
In reply to Michael S. Tsirkin
Quoted 13 lines · Michael S. Tsirkin

We dropped the implementation of vhost_dev_query,
drop it from the header file as well.

---
 include/hw/virtio/vhost.h | 1 -
 1 file changed, 1 deletion(-)
include/hw/virtio/vhost.h +0 -0
index 7437fd4..b60d758 100644

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);
#4 lore raw
In reply to Michael S. Tsirkin
Quoted 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