[PATCH] fix arch_pick_mmap_layout() build error

From: Yoichi Yuasa
Date: Sat Jul 26 2008 - 21:25:25 EST


uninline arch_pick_mmap_layout()[16d69265b930f7e2fa9eea381715696f780718f4]
has forgotten to add #include <linux/sched.h>.

mm/util.c: In function 'arch_pick_mmap_layout':
mm/util.c:145: error: 'arch_get_unmapped_area' undeclared (first use in this function)
mm/util.c:145: error: (Each undeclared identifier is reported only once
mm/util.c:145: error: for each function it appears in.)
mm/util.c:146: error: 'arch_unmap_area' undeclared (first use in this function)
make[1]: *** [mm/util.o] Error 1

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@xxxxxxxxxxxxxx>

diff -pruN -X /home/yuasa/Memo/dontdiff linux-orig/mm/util.c linux/mm/util.c
--- linux-orig/mm/util.c 2008-07-27 09:58:16.643441756 +0900
+++ linux/mm/util.c 2008-07-27 10:02:26.069593850 +0900
@@ -1,4 +1,5 @@
#include <linux/mm.h>
+#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/module.h>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/