I'm getting this error when compiling Linux 2.4.21-pre5-ac3 for a 486
system without PCI:
arch/i386/kernel/kernel.o: In function `broken_pirq':
arch/i386/kernel/kernel.o(.text.init+0x3454): undefined reference to
`broken_440gx_bios'
arch/i386/kernel/kernel.o(.text.init+0x345e): undefined reference to
`pci_probe'
Following patch fixes both issues. pci_probe is available only if PCI
support is compiled in, broken_440gx_bios is available if PCI is used and
the system is not a SGI workstation.
==============================
--- linux.orig/arch/i386/kernel/dmi_scan.c
+++ linux/arch/i386/kernel/dmi_scan.c
@@ -427,8 +427,12 @@ static __init int broken_pirq(struct dmi
#ifdef CONFIG_X86_IO_APIC
skip_ioapic_setup = 0;
#endif
+#ifdef CONFIG_PCI
+#ifndef CONFIG_VISWS
broken_440gx_bios = 1;
+#endif
pci_probe |= PCI_BIOS_IRQ_SCAN;
+#endif
return 0;
}
==============================
-- Regards, Pavel Roskin - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/