[PATCH] highmem: fixed ip27-memory.c build error

Yoichi Yuasa
2006-07-27T15:37:17Z

Hi,

This patch has fixed following build error.
This error occurred in relation to reduce-max_nr_zones-move-highmem-counters-into-highmemc-h.patch .

CC arch/mips/sgi-ip27/ip27-memory.o
arch/mips/sgi-ip27/ip27-memory.c: In function `mem_init':
arch/mips/sgi-ip27/ip27-memory.c:582: error: `totalhigh_pages' undeclared (first use in this function)
arch/mips/sgi-ip27/ip27-memory.c:582: error: (Each undeclared identifier is reported only once
arch/mips/sgi-ip27/ip27-memory.c:582: error: for each function it appears in.)
make[1]: *** [arch/mips/sgi-ip27/ip27-memory.o] Error 1
make: *** [arch/mips/sgi-ip27] Error 2

Yoichi

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>

diff -pruN -X linux-2.6.18-rc2-mm1/Documentation/dontdiff linux-2.6.18-rc2-mm1-orig/arch/mips/sgi-ip27/ip27-memory.c linux-2.6.18-rc2-mm1/arch/mips/sgi-ip27/ip27-memory.c
--- linux-2.6.18-rc2-mm1-orig/arch/mips/sgi-ip27/ip27-memory.c 2006-07-27 20:15:23.680114000 +0900
+++ linux-2.6.18-rc2-mm1/arch/mips/sgi-ip27/ip27-memory.c 2006-07-27 19:40:11.234693250 +0900
@@ -19,6 +19,7 @@
#include <linux/swap.h>
#include <linux/bootmem.h>
#include <linux/pfn.h>
+#include <linux/highmem.h>
#include <asm/page.h>
#include <asm/sections.h>