diff options
author | Miles Chen <miles.chen@mediatek.com> | 2016-02-25 04:44:34 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2016-02-26 14:39:53 +0100 |
commit | b7dc8d16e76c25409d93ff3aceda42fc386efc4e (patch) | |
tree | d4ffb32c184f1eebf41e3deb40db0ccc45845aa3 /arch/arm64 | |
parent | arm64: Fix building error with 16KB pages and 36-bit VA (diff) | |
download | linux-b7dc8d16e76c25409d93ff3aceda42fc386efc4e.tar.xz linux-b7dc8d16e76c25409d93ff3aceda42fc386efc4e.zip |
arm64/mm: remove unnecessary boundary check
Remove the unnecessary boundary check since there is a huge
gap between user and kernel address that they would never overlap.
(arm64 does not have enough levels of page tables to cover 64-bit
virtual address)
See Documentation/arm64/memory.txt
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/mm/init.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index e1f425fe5a81..80c8bdeeb41a 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -401,8 +401,6 @@ void __init mem_init(void) #ifdef CONFIG_COMPAT BUILD_BUG_ON(TASK_SIZE_32 > TASK_SIZE_64); #endif - BUILD_BUG_ON(TASK_SIZE_64 > MODULES_VADDR); - BUG_ON(TASK_SIZE_64 > MODULES_VADDR); if (PAGE_SIZE >= 16384 && get_num_physpages() <= 128) { extern int sysctl_overcommit_memory; |