mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
irq_remapping: move structs outside #ifdef
This is friendlier to clients of the code, who are going to prepare vcpu_data structs unconditionally, even if CONFIG_IRQ_REMAP is not defined. Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
72c930dcfc
commit
18cd52c4d9
1 changed files with 5 additions and 5 deletions
|
@ -33,6 +33,11 @@ enum irq_remap_cap {
|
||||||
IRQ_POSTING_CAP = 0,
|
IRQ_POSTING_CAP = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct vcpu_data {
|
||||||
|
u64 pi_desc_addr; /* Physical address of PI Descriptor */
|
||||||
|
u32 vector; /* Guest vector of the interrupt */
|
||||||
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_IRQ_REMAP
|
#ifdef CONFIG_IRQ_REMAP
|
||||||
|
|
||||||
extern bool irq_remapping_cap(enum irq_remap_cap cap);
|
extern bool irq_remapping_cap(enum irq_remap_cap cap);
|
||||||
|
@ -58,11 +63,6 @@ static inline struct irq_domain *arch_get_ir_parent_domain(void)
|
||||||
return x86_vector_domain;
|
return x86_vector_domain;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct vcpu_data {
|
|
||||||
u64 pi_desc_addr; /* Physical address of PI Descriptor */
|
|
||||||
u32 vector; /* Guest vector of the interrupt */
|
|
||||||
};
|
|
||||||
|
|
||||||
#else /* CONFIG_IRQ_REMAP */
|
#else /* CONFIG_IRQ_REMAP */
|
||||||
|
|
||||||
static inline bool irq_remapping_cap(enum irq_remap_cap cap) { return 0; }
|
static inline bool irq_remapping_cap(enum irq_remap_cap cap) { return 0; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue