mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [TRIVIAL PATCH] Compile error in 2.4.21-pre5-ac3 without PCI
@ 2003-03-29  7:11 Pavel Roskin
  2003-03-29 14:58 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Roskin @ 2003-03-29  7:11 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [TRIVIAL PATCH] Compile error in 2.4.21-pre5-ac3 without PCI
  2003-03-29  7:11 [TRIVIAL PATCH] Compile error in 2.4.21-pre5-ac3 without PCI Pavel Roskin
@ 2003-03-29 14:58 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2003-03-29 14:58 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: Linux Kernel Mailing List

On Sat, 2003-03-29 at 07:11, Pavel Roskin wrote:
> Hello!
> 
> I'm getting this error when compiling Linux 2.4.21-pre5-ac3 for a 486
> system without PCI:

Thanks


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-29 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-29  7:11 [TRIVIAL PATCH] Compile error in 2.4.21-pre5-ac3 without PCI Pavel Roskin
2003-03-29 14:58 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®