Fix compilation errors in 20030813 when IO APIC not configured
PATCH 1/1 Fix compilation errors in 20030813 when IO APIC not configured
Hi,
when I tried to compile 2.4.22-rc2 + ACPI 20030813 I got a compilation error in setup.c. Adding a CONFIG_X86_IO_APIC around the offending places fixed the problem. See the attached diffs.
Reading some recent messages on this mailing list, I think I should try to enable the kernel options LOCAL APIC and IO APIC for my laptop though...
Regards,
Stefan
---
Stefan Becker
E-Mail: [email protected]
arch/i386/kernel/setup.c renamed from arch/i386/kernel/setup.c~ +5 -0
@@ -179,6 +179,9 @@int acpi_disabled__initdata =0 ;int acpi_ht__initdata =1 ;/* enable HT */ int acpi_force__initdata =0 ; +#ifdef CONFIG_X86_IO_APIC +extern int skip_ioapic_setup; +#endif #else int acpi_disabled__initdata =1 ;#endif
@@ -825,11 +828,13 @@if (!acpi_force) acpi_disabled =1 ; } +#ifdef CONFIG_X86_IO_APIC /* disable IO-APIC */ else if (!memcmp(from, "noapic", 6)) { skip_ioapic_setup =1 ; }#endif +#endif /* * highmem=size forces highmem to be exactly 'size' bytes. * This works even on boxes that have no highmem otherwise.