2003-03-24 14:16:25

by Christian Neumair

[permalink] [raw]
Subject: [PATCH-2.5] Missing include, again

Hi there!
The included patch fixes the following error when compiling current 2.5
kernel:

-- snip --
arch/i386/pci/numa.c: In function `__pci_conf1_mq_read':
arch/i386/pci/numa.c:20: `MAX_MP_BUSSES' undeclared (first use in this
function)
arch/i386/pci/numa.c:20: (Each undeclared identifier is reported only
once
arch/i386/pci/numa.c:20: for each function it appears in.)
arch/i386/pci/numa.c:25: `mp_bus_id_to_local' undeclared (first use in
this func
tion)
arch/i386/pci/numa.c:25: `mp_bus_id_to_node' undeclared (first use in
this funct
ion)
arch/i386/pci/numa.c: In function `__pci_conf1_mq_write':
arch/i386/pci/numa.c:48: `MAX_MP_BUSSES' undeclared (first use in this
function)
arch/i386/pci/numa.c:53: `mp_bus_id_to_local' undeclared (first use in
this func
tion)
arch/i386/pci/numa.c:53: `mp_bus_id_to_node' undeclared (first use in
this funct
ion)
arch/i386/pci/numa.c: In function `pci_fixup_i450nx':
arch/i386/pci/numa.c:99: `mp_bus_id_to_node' undeclared (first use in
this funct
ion)
arch/i386/pci/numa.c:109: `quad_local_to_mp_bus_id' undeclared (first
use in thi
s function)
arch/i386/pci/numa.c: In function `pci_numa_init':
arch/i386/pci/numa.c:133: `quad_local_to_mp_bus_id' undeclared (first
use in thi
s function)
make[1]: *** [arch/i386/pci/numa.o] Fehler 1
make: *** [arch/i386/pci] Fehler 2
[PATCH] Tiny compile include fix
-- snap --

regs,
Chris


Index: arch/i386/pci/numa.c
===================================================================
RCS file: /home/cvs/linux-2.5/arch/i386/pci/numa.c,v
retrieving revision 1.8
diff -u -r1.8 numa.c
--- arch/i386/pci/numa.c 28 Feb 2003 23:09:01 -0000 1.8
+++ arch/i386/pci/numa.c 24 Mar 2003 13:38:54 -0000
@@ -4,6 +4,7 @@

#include <linux/pci.h>
#include <linux/init.h>
+#include <asm/mpspec.h>
#include "pci.h"

#define BUS2QUAD(global) (mp_bus_id_to_node[global])