diff options
Diffstat (limited to 'arch/mips/mm/mmap.c')
-rw-r--r-- | arch/mips/mm/mmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/mm/mmap.c b/arch/mips/mm/mmap.c index 9a4f1f5c1f0e..5c81fdd032c3 100644 --- a/arch/mips/mm/mmap.c +++ b/arch/mips/mm/mmap.c | |||
@@ -142,7 +142,7 @@ unsigned long arch_get_unmapped_area_topdown(struct file *filp, | |||
142 | addr0, len, pgoff, flags, DOWN); | 142 | addr0, len, pgoff, flags, DOWN); |
143 | } | 143 | } |
144 | 144 | ||
145 | static unsigned long mmap_rnd(void) | 145 | unsigned long arch_mmap_rnd(void) |
146 | { | 146 | { |
147 | unsigned long rnd; | 147 | unsigned long rnd; |
148 | 148 | ||
@@ -161,7 +161,7 @@ void arch_pick_mmap_layout(struct mm_struct *mm) | |||
161 | unsigned long random_factor = 0UL; | 161 | unsigned long random_factor = 0UL; |
162 | 162 | ||
163 | if (current->flags & PF_RANDOMIZE) | 163 | if (current->flags & PF_RANDOMIZE) |
164 | random_factor = mmap_rnd(); | 164 | random_factor = arch_mmap_rnd(); |
165 | 165 | ||
166 | if (mmap_is_legacy()) { | 166 | if (mmap_is_legacy()) { |
167 | mm->mmap_base = TASK_UNMAPPED_BASE + random_factor; | 167 | mm->mmap_base = TASK_UNMAPPED_BASE + random_factor; |