mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: linux-kernel@vger.kernel.org
Subject: [TRIVIAL PATCH] Compile error in 2.4.21-pre5-ac3 without PCI
Date: Sat, 29 Mar 2003 02:11:49 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.51.0303290010060.32041@localhost.localdomain> (raw)

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

             reply	other threads:[~2003-03-29  7:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-29  7:11 Pavel Roskin [this message]
2003-03-29 14:58 ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.51.0303290010060.32041@localhost.localdomain \
    --to=proski@gnu.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®