Skip to content

Commit

Permalink
KVM: remove unnecessary #ifdef
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini committed Feb 8, 2024
1 parent 6bda055 commit db7d6fb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/uapi/linux/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -918,8 +918,6 @@ struct kvm_enable_cap {
#define KVM_CAP_GUEST_MEMFD 234
#define KVM_CAP_VM_TYPES 235

#ifdef KVM_CAP_IRQ_ROUTING

struct kvm_irq_routing_irqchip {
__u32 irqchip;
__u32 pin;
Expand Down Expand Up @@ -984,8 +982,6 @@ struct kvm_irq_routing {
struct kvm_irq_routing_entry entries[];
};

#endif

#define KVM_IRQFD_FLAG_DEASSIGN (1 << 0)
/*
* Available with KVM_CAP_IRQFD_RESAMPLE
Expand Down

0 comments on commit db7d6fb

Please sign in to comment.