[tip:tools/kvm] kvm tools: Fix virtio scsi build breakage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  873f6078ac9646072e590d56c0359e0ae84c3647
Gitweb:     http://git.kernel.org/tip/873f6078ac9646072e590d56c0359e0ae84c3647
Author:     Ingo Molnar <mingo@xxxxxxxxxx>
AuthorDate: Wed, 19 Jun 2013 14:58:36 +0200
Committer:  Pekka Enberg <penberg@xxxxxxxxxx>
CommitDate: Sat, 10 Aug 2013 09:47:59 +0300

kvm tools: Fix virtio scsi build breakage

Asias writes:

  In include/kvm/virtio-scsi.h, we have

     /* TODO: Remove this when tcm_vhost goes upstream */

  We are redefining VHOST_SCSI_GET_ABI_VERSION and friends because
  tcm_vhost was not upstream at that time. Pekka, I guess we need to
  upgrade kernel version in lkvm repo and drop our own tcm_vhost
  defines.

Ingo writes:

  I can confirm that the patch below fixes the build problem.

Analyzed-by: Asias He <asias.hejun@xxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx>
---
 tools/kvm/include/kvm/virtio-scsi.h | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/tools/kvm/include/kvm/virtio-scsi.h b/tools/kvm/include/kvm/virtio-scsi.h
index a780d7e..d64aa7e 100644
--- a/tools/kvm/include/kvm/virtio-scsi.h
+++ b/tools/kvm/include/kvm/virtio-scsi.h
@@ -8,19 +8,4 @@ struct kvm;
 int virtio_scsi_init(struct kvm *kvm);
 int virtio_scsi_exit(struct kvm *kvm);
 
-/*----------------------------------------------------*/
-/* TODO: Remove this when tcm_vhost goes upstream */
-#define TRANSPORT_IQN_LEN		224
-#define VHOST_SCSI_ABI_VERSION		0
-struct vhost_scsi_target {
-	int abi_version;
-	unsigned char vhost_wwpn[TRANSPORT_IQN_LEN];
-	unsigned short vhost_tpgt;
-};
-/* VHOST_SCSI specific defines */
-#define VHOST_SCSI_SET_ENDPOINT _IOW(VHOST_VIRTIO, 0x40, struct vhost_scsi_target)
-#define VHOST_SCSI_CLEAR_ENDPOINT _IOW(VHOST_VIRTIO, 0x41, struct vhost_scsi_target)
-#define VHOST_SCSI_GET_ABI_VERSION _IOW(VHOST_VIRTIO, 0x42, struct vhost_scsi_target)
-/*----------------------------------------------------*/
-
 #endif /* KVM__SCSI_VIRTIO_H */
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux