]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: use linux/sizes.h for constants
authorMiles Chen <miles.chen@mediatek.com>
Thu, 9 Feb 2017 01:52:03 +0000 (09:52 +0800)
committerWill Deacon <will.deacon@arm.com>
Thu, 9 Feb 2017 11:39:20 +0000 (11:39 +0000)
Use linux/size.h to improve code readability.

Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/process.c

index 0b07d42819dab594c81d0a9596d71f1aa828d312..1ad48f93abdd59b4c60d819d6426a5f3a61db99a 100644 (file)
@@ -407,7 +407,7 @@ unsigned long arch_align_stack(unsigned long sp)
 unsigned long arch_randomize_brk(struct mm_struct *mm)
 {
        if (is_compat_task())
-               return randomize_page(mm->brk, 0x02000000);
+               return randomize_page(mm->brk, SZ_32M);
        else
-               return randomize_page(mm->brk, 0x40000000);
+               return randomize_page(mm->brk, SZ_1G);
 }