[patch] Re: Compile failure with 2.5.3-dj1

Adrian Bunk (bunk@fs.tum.de)
Fri, 1 Feb 2002 09:16:10 +0100 (CET)


On Fri, 1 Feb 2002, Brett wrote:

> Hey,

Hi Brett,

>...
> arch/i386/kernel/kernel.o: In function `fix_broken_hp_bios_irq9':
> arch/i386/kernel/kernel.o(.text.init+0x32c1): undefined reference to
> `broken_hp_bios_irq9'
> arch/i386/kernel/kernel.o(.text.init+0x32d6): undefined reference to
> `broken_hp_bios_irq9'
>...
> # CONFIG_PCI is not set
>...

<-- snip -->

static __init int fix_broken_hp_bios_irq9(struct dmi_blacklist *d)
{
extern int broken_hp_bios_irq9;

<-- snip -->

broken_hp_bios_irq9 is in pci-irq.o that only gets included when
CONFIG_PCI is set. The following patch fixes the build error:

--- arch/i386/kernel/dmi_scan.c.old Fri Feb 1 08:25:24 2002
+++ arch/i386/kernel/dmi_scan.c Fri Feb 1 09:14:36 2002
@@ -301,12 +301,14 @@
*/
static __init int fix_broken_hp_bios_irq9(struct dmi_blacklist *d)
{
+#ifdef CONFIG_PCI
extern int broken_hp_bios_irq9;
if (broken_hp_bios_irq9 == 0)
{
broken_hp_bios_irq9 = 1;
printk(KERN_INFO "%s detected - fixing broken IRQ routing\n", d->ident);
}
+#endif
return 0;
}

cu
Adrian

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