Define apic_intr_mode after the enum definition, not before, otherwise an error results.
Signed-off-by: David Howells <dhowe...@redhat.com> --- arch/x86/include/asm/apic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 98722773391d..c8eef5e6c46c 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h @@ -53,7 +53,6 @@ extern int local_apic_timer_c2_ok; extern int disable_apic; extern unsigned int lapic_timer_frequency; -extern enum apic_intr_mode_id apic_intr_mode; enum apic_intr_mode_id { APIC_PIC, APIC_VIRTUAL_WIRE, @@ -61,6 +60,7 @@ enum apic_intr_mode_id { APIC_SYMMETRIC_IO, APIC_SYMMETRIC_IO_NO_ROUTING }; +extern enum apic_intr_mode_id apic_intr_mode; #ifdef CONFIG_SMP extern void __inquire_remote_apic(int apicid);