[PATCH] Unresolved symbol compile error on non-PCI PC systems

From: Stephane Ouellette (ouellettes@videotron.ca)
Date: Sat Apr 05 2003 - 19:56:31 EST


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


--- linux-2.4.21-pre5-ac3/arch/i386/kernel/dmi_scan.c Fri Apr 4 16:52:19 2003
+++ linux-2.4.21-pre5-ac3-fixed/arch/i386/kernel/dmi_scan.c Sat Apr 5 12:12:48 2003
@@ -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;
 }

-
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/



This archive was generated by hypermail 2b29 : Mon Apr 07 2003 - 22:00:27 EST