Skip to contentSkip to conversation

Unresolved symbol compile error on non-PCI PC systems

PATCH New Stephane Ouellette 1 participant 1 message Apr 6, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Unresolved symbol compile error on non-PCI PC systems

Folks,

in the file arch/i386/kernel/dmi_scan.c, there are two unresolved
symbols when this file is compiled for a system without PCI support.

The following patch fixes this. Patch applies against 2.4.21-pre5-ac3.

As I do not know for sure if there are other issues related with
this patch, I would like that someone double-checks it. There is also a possibility that this fix applies to the 2.5 kernel tree.

Regards,

Stephane Ouellette

arch/i386/kernel/dmi_scan.c +4 -0
@@ -415,8 +415,10 @@
  */
  
 extern int skip_ioapic_setup;
+#ifdef CONFIG_PCI
 extern int broken_440gx_bios;
 extern unsigned int pci_probe;
+#endif
 static __init int broken_pirq(struct dmi_blacklist *d)
 {
 	printk(KERN_INFO " *** Possibly defective BIOS detected (irqtable)\n");
@@ -427,8 +429,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;
 }