lkml.org 
[lkml]   [2003]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[TRIVIAL PATCH] Compile error in 2.4.21-pre5-ac3 without PCI
Hello!

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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.412 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site