aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/mm/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/mm/mmap.c')
-rw-r--r--arch/s390/mm/mmap.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/s390/mm/mmap.c b/arch/s390/mm/mmap.c
index 179a2c20b01f..2e8378796e87 100644
--- a/arch/s390/mm/mmap.c
+++ b/arch/s390/mm/mmap.c
@@ -190,29 +190,6 @@ unsigned long randomize_et_dyn(void)
190 return base + mmap_rnd(); 190 return base + mmap_rnd();
191} 191}
192 192
193#ifndef CONFIG_64BIT
194
195/*
196 * This function, called very early during the creation of a new
197 * process VM image, sets up which VM layout function to use:
198 */
199void arch_pick_mmap_layout(struct mm_struct *mm)
200{
201 /*
202 * Fall back to the standard layout if the personality
203 * bit is set, or if the expected stack growth is unlimited:
204 */
205 if (mmap_is_legacy()) {
206 mm->mmap_base = mmap_base_legacy();
207 mm->get_unmapped_area = arch_get_unmapped_area;
208 } else {
209 mm->mmap_base = mmap_base();
210 mm->get_unmapped_area = arch_get_unmapped_area_topdown;
211 }
212}
213
214#else
215
216int s390_mmap_check(unsigned long addr, unsigned long len, unsigned long flags) 193int s390_mmap_check(unsigned long addr, unsigned long len, unsigned long flags)
217{ 194{
218 if (is_compat_task() || (TASK_SIZE >= (1UL << 53))) 195 if (is_compat_task() || (TASK_SIZE >= (1UL << 53)))
@@ -317,5 +294,3 @@ static int __init setup_mmap_rnd(void)
317 return 0; 294 return 0;
318} 295}
319early_initcall(setup_mmap_rnd); 296early_initcall(setup_mmap_rnd);
320
321#endif