summaryrefslogtreecommitdiffstats
path: root/mm/util.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-07-25 19:44:36 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-26 12:00:01 -0700
commit16d69265b930f7e2fa9eea381715696f780718f4 (patch)
tree5b3bf02f5f4fe21da4e9b5e0f22f6518bd81b609 /mm/util.c
parent0c7ad106e779549792deb307242dece6f3499bb9 (diff)
downloadblackbird-op-linux-16d69265b930f7e2fa9eea381715696f780718f4.tar.gz
blackbird-op-linux-16d69265b930f7e2fa9eea381715696f780718f4.zip
uninline arch_pick_mmap_layout()
Fix this, on avr32: include/linux/utsname.h:35, from init/main.c:20: include/linux/sched.h: In function 'arch_pick_mmap_layout': include/linux/sched.h:2149: error: implicit declaration of function 'PAGE_ALIGN' Reported-by: Adrian Bunk <bunk@kernel.org> Cc: Haavard Skinnemoen <hskinnemoen@atmel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/util.c')
-rw-r--r--mm/util.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mm/util.c b/mm/util.c
index 8f18683825bc..0efd83097ecf 100644
--- a/mm/util.c
+++ b/mm/util.c
@@ -1,3 +1,4 @@
+#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/module.h>
@@ -136,3 +137,12 @@ char *strndup_user(const char __user *s, long n)
return p;
}
EXPORT_SYMBOL(strndup_user);
+
+#ifndef HAVE_ARCH_PICK_MMAP_LAYOUT
+void arch_pick_mmap_layout(struct mm_struct *mm)
+{
+ mm->mmap_base = TASK_UNMAPPED_BASE;
+ mm->get_unmapped_area = arch_get_unmapped_area;
+ mm->unmap_area = arch_unmap_area;
+}
+#endif
OpenPOWER on IntegriCloud