diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-09-18 12:04:17 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-10-01 09:06:42 -0400 |
commit | 18cd52c4d9bfbd081fb643021ba8d048475cd82a (patch) | |
tree | 2fed4d9a9d19c6e05b479df27a572d58f69edcfb | |
parent | 72c930dcfc2b49404ee9e20f6c868402e9c71166 (diff) |
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>
-rw-r--r-- | arch/x86/include/asm/irq_remapping.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/include/asm/irq_remapping.h b/arch/x86/include/asm/irq_remapping.h index 046c7fb1ca43..a210eba2727c 100644 --- a/arch/x86/include/asm/irq_remapping.h +++ b/arch/x86/include/asm/irq_remapping.h | |||
@@ -33,6 +33,11 @@ enum irq_remap_cap { | |||
33 | IRQ_POSTING_CAP = 0, | 33 | IRQ_POSTING_CAP = 0, |
34 | }; | 34 | }; |
35 | 35 | ||
36 | struct vcpu_data { | ||
37 | u64 pi_desc_addr; /* Physical address of PI Descriptor */ | ||
38 | u32 vector; /* Guest vector of the interrupt */ | ||
39 | }; | ||
40 | |||
36 | #ifdef CONFIG_IRQ_REMAP | 41 | #ifdef CONFIG_IRQ_REMAP |
37 | 42 | ||
38 | extern bool irq_remapping_cap(enum irq_remap_cap cap); | 43 | 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) | |||
58 | return x86_vector_domain; | 63 | return x86_vector_domain; |
59 | } | 64 | } |
60 | 65 | ||
61 | struct vcpu_data { | ||
62 | u64 pi_desc_addr; /* Physical address of PI Descriptor */ | ||
63 | u32 vector; /* Guest vector of the interrupt */ | ||
64 | }; | ||
65 | |||
66 | #else /* CONFIG_IRQ_REMAP */ | 66 | #else /* CONFIG_IRQ_REMAP */ |
67 | 67 | ||
68 | static inline bool irq_remapping_cap(enum irq_remap_cap cap) { return 0; } | 68 | static inline bool irq_remapping_cap(enum irq_remap_cap cap) { return 0; } |