aboutsummaryrefslogtreecommitdiffstats
path: root/mm/util.c
diff options
context:
space:
mode:
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 @@
1#include <linux/mm.h>
1#include <linux/slab.h> 2#include <linux/slab.h>
2#include <linux/string.h> 3#include <linux/string.h>
3#include <linux/module.h> 4#include <linux/module.h>
@@ -136,3 +137,12 @@ char *strndup_user(const char __user *s, long n)
136 return p; 137 return p;
137} 138}
138EXPORT_SYMBOL(strndup_user); 139EXPORT_SYMBOL(strndup_user);
140
141#ifndef HAVE_ARCH_PICK_MMAP_LAYOUT
142void arch_pick_mmap_layout(struct mm_struct *mm)
143{
144 mm->mmap_base = TASK_UNMAPPED_BASE;
145 mm->get_unmapped_area = arch_get_unmapped_area;
146 mm->unmap_area = arch_unmap_area;
147}
148#endif