2.5.50 compile failure: drivers/pci/quirks.c missing #include

Henrik Størner (henrik@hswn.dk)
Thu, 28 Nov 2002 10:12:43 +0100


gcc -Wp,-MD,drivers/pci/.quirks.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2
-march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include
-DKBUILD_BASENAME=quirks -DKBUILD_MODNAME=quirks -c -o
drivers/pci/quirks.o drivers/pci/quirks.c
drivers/pci/quirks.c: In function `quirk_ioapic_rmw':
drivers/pci/quirks.c:354: `sis_apic_bug' undeclared (first use in this
function)

osiris:~/kernel/linux-2.5 $ grep sis_apic_bug include/asm-i386/*
include/asm-i386/io_apic.h:extern int sis_apic_bug;
include/asm-i386/io_apic.h: if (sis_apic_bug)

This fixes it:

--- linux-2.5/drivers/pci//quirks.c.orig 2002-11-28 10:07:21.000000000 +0100
+++ linux-2.5/drivers/pci/quirks.c 2002-11-28 10:07:57.000000000 +0100
@@ -18,6 +18,7 @@
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/delay.h>
+#include <asm/io_apic.h>

#undef DEBUG

-- 
Henrik Storner <henrik@hswn.dk> 
-
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/