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

 



From: Vinson Lee <vlee@xxxxxxxxxxx>

This patch fixes these build errors on 3.4 and older.

  CC	ioctls/kvm.o
ioctls/kvm.c:21:2: error: ‘KVM_S390_UCAS_MAP’ undeclared here (not in a function)
ioctls/kvm.c:22:2: error: ‘KVM_S390_UCAS_UNMAP’ undeclared here (not in a function)
ioctls/kvm.c:23:2: error: ‘KVM_S390_VCPU_FAULT’ undeclared here (not in a function)
ioctls/kvm.c:55:2: error: ‘KVM_ASSIGN_SET_INTX_MASK’ undeclared here (not in a function)
ioctls/kvm.c:56:2: error: ‘KVM_SIGNAL_MSI’ undeclared here (not in a function)
ioctls/kvm.c:114:2: error: ‘KVM_DIRTY_TLB’ undeclared here (not in a function)
ioctls/kvm.c:115:2: error: ‘KVM_GET_ONE_REG’ undeclared here (not in a function)
ioctls/kvm.c:116:2: error: ‘KVM_SET_ONE_REG’ undeclared here (not in a function)
ioctls/kvm.c:117:2: error: ‘KVM_KVMCLOCK_CTRL’ undeclared here (not in a function)
make: *** [ioctls/kvm.o] Error 1

Signed-off-by: Vinson Lee <vlee@xxxxxxxxxxx>
---
 include/compat.h |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/include/compat.h b/include/compat.h
index 10457ad..b98f714 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -513,4 +513,60 @@ struct kvm_reg_list {
 #define KVM_GET_REG_LIST          _IOWR(KVMIO, 0xb0, struct kvm_reg_list)
 #endif
 
+#ifndef KVM_S390_UCAS_MAP
+struct kvm_s390_ucas_mapping {
+        __u64 user_addr;
+        __u64 vcpu_addr;
+        __u64 length;
+};
+#define KVM_S390_UCAS_MAP         _IOW(KVMIO, 0x50, struct kvm_s390_ucas_mapping)
+#endif
+
+#ifndef KVM_S390_UCAS_UNMAP
+#define KVM_S390_UCAS_UNMAP       _IOW(KVMIO, 0x51, struct kvm_s390_ucas_mapping)
+#endif
+
+#ifndef KVM_S390_VCPU_FAULT
+#define KVM_S390_VCPU_FAULT       _IOW(KVMIO, 0x52, unsigned long)
+#endif
+
+#ifndef KVM_ASSIGN_SET_INTX_MASK
+#define KVM_ASSIGN_SET_INTX_MASK  _IOW(KVMIO,  0xa4, struct kvm_assigned_pci_dev)
+#endif
+
+#ifndef KVM_SIGNAL_MSI
+struct kvm_msi {
+        __u32 address_lo;
+        __u32 address_hi;
+        __u32 data;
+        __u32 flags;
+        __u8  pad[16];
+};
+#define KVM_SIGNAL_MSI            _IOW(KVMIO,  0xa5, struct kvm_msi)
+#endif
+
+#ifndef KVM_DIRTY_TLB
+struct kvm_dirty_tlb {
+        __u64 bitmap;
+        __u32 num_dirty;
+};
+#define KVM_DIRTY_TLB             _IOW(KVMIO,  0xaa, struct kvm_dirty_tlb)
+#endif
+
+#ifndef KVM_GET_ONE_REG
+struct kvm_one_reg {
+        __u64 id;
+        __u64 addr;
+};
+#define KVM_GET_ONE_REG           _IOW(KVMIO,  0xab, struct kvm_one_reg)
+#endif
+
+#ifndef KVM_SET_ONE_REG
+#define KVM_SET_ONE_REG           _IOW(KVMIO,  0xac, struct kvm_one_reg)
+#endif
+
+#ifndef KVM_KVMCLOCK_CTRL
+#define KVM_KVMCLOCK_CTRL         _IO(KVMIO,   0xad)
+#endif
+
 #endif	/* _TRINITY_COMPAT_H */
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux