Skip to content

Commit 18cd52c

Browse files
committed
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>
1 parent 72c930d commit 18cd52c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/x86/include/asm/irq_remapping.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ enum irq_remap_cap {
3333
IRQ_POSTING_CAP = 0,
3434
};
3535

36+
struct vcpu_data {
37+
u64 pi_desc_addr; /* Physical address of PI Descriptor */
38+
u32 vector; /* Guest vector of the interrupt */
39+
};
40+
3641
#ifdef CONFIG_IRQ_REMAP
3742

3843
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)
5863
return x86_vector_domain;
5964
}
6065

61-
struct vcpu_data {
62-
u64 pi_desc_addr; /* Physical address of PI Descriptor */
63-
u32 vector; /* Guest vector of the interrupt */
64-
};
65-
6666
#else /* CONFIG_IRQ_REMAP */
6767

6868
static inline bool irq_remapping_cap(enum irq_remap_cap cap) { return 0; }

0 commit comments

Comments
 (0)