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

From: Henrik Størner (henrik@hswn.dk)
Date: Thu Nov 28 2002 - 04:12:43 EST


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/



This archive was generated by hypermail 2b29 : Sat Nov 30 2002 - 22:00:20 EST