Skip to content

Commit db7d6fb

Browse files
committed
KVM: remove unnecessary #ifdef
KVM_CAP_IRQ_ROUTING is always defined, so there is no need to check if it is. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 6bda055 commit db7d6fb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

include/uapi/linux/kvm.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -918,8 +918,6 @@ struct kvm_enable_cap {
918918
#define KVM_CAP_GUEST_MEMFD 234
919919
#define KVM_CAP_VM_TYPES 235
920920

921-
#ifdef KVM_CAP_IRQ_ROUTING
922-
923921
struct kvm_irq_routing_irqchip {
924922
__u32 irqchip;
925923
__u32 pin;
@@ -984,8 +982,6 @@ struct kvm_irq_routing {
984982
struct kvm_irq_routing_entry entries[];
985983
};
986984

987-
#endif
988-
989985
#define KVM_IRQFD_FLAG_DEASSIGN (1 << 0)
990986
/*
991987
* Available with KVM_CAP_IRQFD_RESAMPLE

0 commit comments

Comments
 (0)