diff options
-rw-r--r-- | include/linux/sched.h | 9 | ||||
-rw-r--r-- | mm/util.c | 10 |
2 files changed, 10 insertions, 9 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 42036ffe6b00..3260a5c42b91 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2139,16 +2139,7 @@ static inline void set_task_cpu(struct task_struct *p, unsigned int cpu) | |||
2139 | 2139 | ||
2140 | #endif /* CONFIG_SMP */ | 2140 | #endif /* CONFIG_SMP */ |
2141 | 2141 | ||
2142 | #ifdef HAVE_ARCH_PICK_MMAP_LAYOUT | ||
2143 | extern void arch_pick_mmap_layout(struct mm_struct *mm); | 2142 | extern void arch_pick_mmap_layout(struct mm_struct *mm); |
2144 | #else | ||
2145 | static inline void arch_pick_mmap_layout(struct mm_struct *mm) | ||
2146 | { | ||
2147 | mm->mmap_base = TASK_UNMAPPED_BASE; | ||
2148 | mm->get_unmapped_area = arch_get_unmapped_area; | ||
2149 | mm->unmap_area = arch_unmap_area; | ||
2150 | } | ||
2151 | #endif | ||
2152 | 2143 | ||
2153 | #ifdef CONFIG_TRACING | 2144 | #ifdef CONFIG_TRACING |
2154 | extern void | 2145 | extern void |
@@ -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 | } |
138 | EXPORT_SYMBOL(strndup_user); | 139 | EXPORT_SYMBOL(strndup_user); |
140 | |||
141 | #ifndef HAVE_ARCH_PICK_MMAP_LAYOUT | ||
142 | void 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 | ||