[-mm PATCH] ioremap: fixed MIPS build error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux