[-mm PATCH] ioremap: fixed MIPS build error

Yoichi Yuasa
2006-08-14T15:11:23Z

Hi Andrew,

This patch has fixed following build error.
This error occurred in relation to generic-ioremap_page_range-mips-conversion.patch

CC arch/mips/mm/ioremap.o
arch/mips/mm/ioremap.c: In function `__ioremap':
arch/mips/mm/ioremap.c:58: error: `high_memory' undeclared (first use in this function)
arch/mips/mm/ioremap.c:58: error: (Each undeclared identifier is reported only once
arch/mips/mm/ioremap.c:58: error: for each function it appears in.)
arch/mips/mm/ioremap.c:65: error: `mem_map' undeclared (first use in this function)
arch/mips/mm/ioremap.c:65: error: increment of pointer to unknown structure
arch/mips/mm/ioremap.c:65: error: arithmetic on pointer to an incomplete type
arch/mips/mm/ioremap.c:66: warning: implicit declaration of function `PageReserved'
make[1]: *** [arch/mips/mm/ioremap.o] Error 1
make: *** [arch/mips/mm] Error 2

diff -pruN -X linux-2.6.18-rc4-mm1/Documentation/dontdiff linux-2.6.18-rc4-mm1-orig/arch/mips/mm/ioremap.c linux-2.6.18-rc4-mm1/arch/mips/mm/ioremap.c
--- linux-2.6.18-rc4-mm1-orig/arch/mips/mm/ioremap.c 2006-08-14 15:36:38.910018250 +0900
+++ linux-2.6.18-rc4-mm1/arch/mips/mm/ioremap.c 2006-08-14 23:30:48.321004750 +0900
@@ -6,6 +6,7 @@
* (C) Copyright 1995 1996 Linus Torvalds
* (C) Copyright 2001, 2002 Ralf Baechle
*/
+#include <linux/mm.h>
#include <linux/module.h>
#include <asm/addrspace.h>
#include <asm/byteorder.h>