diff options
Diffstat (limited to 'arch/s390/mm/mmap.c')
-rw-r--r-- | arch/s390/mm/mmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/s390/mm/mmap.c b/arch/s390/mm/mmap.c index db57078075c5..a94504d99c47 100644 --- a/arch/s390/mm/mmap.c +++ b/arch/s390/mm/mmap.c | |||
@@ -60,7 +60,7 @@ static inline int mmap_is_legacy(void) | |||
60 | return sysctl_legacy_va_layout; | 60 | return sysctl_legacy_va_layout; |
61 | } | 61 | } |
62 | 62 | ||
63 | static unsigned long mmap_rnd(void) | 63 | unsigned long arch_mmap_rnd(void) |
64 | { | 64 | { |
65 | if (is_32bit_task()) | 65 | if (is_32bit_task()) |
66 | return (get_random_int() & 0x7ff) << PAGE_SHIFT; | 66 | return (get_random_int() & 0x7ff) << PAGE_SHIFT; |
@@ -187,7 +187,7 @@ unsigned long randomize_et_dyn(void) | |||
187 | base &= ~((1UL << 32) - 1); | 187 | base &= ~((1UL << 32) - 1); |
188 | 188 | ||
189 | if (current->flags & PF_RANDOMIZE) | 189 | if (current->flags & PF_RANDOMIZE) |
190 | base += mmap_rnd(); | 190 | base += arch_mmap_rnd(); |
191 | 191 | ||
192 | return base; | 192 | return base; |
193 | } | 193 | } |
@@ -203,7 +203,7 @@ void arch_pick_mmap_layout(struct mm_struct *mm) | |||
203 | unsigned long random_factor = 0UL; | 203 | unsigned long random_factor = 0UL; |
204 | 204 | ||
205 | if (current->flags & PF_RANDOMIZE) | 205 | if (current->flags & PF_RANDOMIZE) |
206 | random_factor = mmap_rnd(); | 206 | random_factor = arch_mmap_rnd(); |
207 | 207 | ||
208 | /* | 208 | /* |
209 | * Fall back to the standard layout if the personality | 209 | * Fall back to the standard layout if the personality |
@@ -283,7 +283,7 @@ void arch_pick_mmap_layout(struct mm_struct *mm) | |||
283 | unsigned long random_factor = 0UL; | 283 | unsigned long random_factor = 0UL; |
284 | 284 | ||
285 | if (current->flags & PF_RANDOMIZE) | 285 | if (current->flags & PF_RANDOMIZE) |
286 | random_factor = mmap_rnd(); | 286 | random_factor = arch_mmap_rnd(); |
287 | 287 | ||
288 | /* | 288 | /* |
289 | * Fall back to the standard layout if the personality | 289 | * Fall back to the standard layout if the personality |