Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+5 -5
+5 -5
arch/x86/include/asm/irq_remapping.h
··· 33 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 41 #ifdef CONFIG_IRQ_REMAP 37 42 38 43 extern bool irq_remapping_cap(enum irq_remap_cap cap); ··· 62 57 { 63 58 return x86_vector_domain; 64 59 } 65 - 66 - struct vcpu_data { 67 - u64 pi_desc_addr; /* Physical address of PI Descriptor */ 68 - u32 vector; /* Guest vector of the interrupt */ 69 - }; 70 60 71 61 #else /* CONFIG_IRQ_REMAP */ 72 62