Skip to contentSkip to conversation

2.4.21-pre7 broken for non-pci

DISCUSSION Tom Marshall 1 participant 1 message Apr 9, 2003

lore
Share & tools
lore
#0 lore raw

[I am not subscribed. Please cc: me on responses]

2.4.21-pre7 seems to have introduced a bug in non-pci machines. If pci is not enabled, linkage is broken with unresolved symbol broken_440gx_bios.

Simple fix:

$ diff -u /usr/src/linux-2.4.21-pre7/arch/i386/kernel/dmi_scan.c arch/i386/kernel/dmi_scan.c 
--- /usr/src/linux-2.4.21-pre7/arch/i386/kernel/dmi_scan.c      2003-04-05 16:43:31.000000000 -0800
+++ arch/i386/kernel/dmi_scan.c 2003-04-05 18:26:31.000000000 -0800
@@ -413,9 +413,13 @@
  * On many (all we have checked) of these boxes the $PIRQ table is wrong.
  * The MP1.4 table is right however and so SMP kernels tend to work. 
  */
- 
+
+#ifdef CONFIG_X86_IO_APIC
 extern int skip_ioapic_setup;
+#endif
+#ifdef CONFIG_PCI
 extern int broken_440gx_bios;
+#endif
 extern unsigned int pci_probe;
 static __init int broken_pirq(struct dmi_blacklist *d)
 {
@@ -427,8 +431,10 @@
 #ifdef CONFIG_X86_IO_APIC
        skip_ioapic_setup = 0;
 #endif
+#ifdef CONFIG_PCI
        broken_440gx_bios = 1;
        pci_probe |= PCI_BIOS_IRQ_SCAN;
+#endif
        return 0;

}