arm64: mm: check at build time that PAGE_OFFSET divides the VA space evenly
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 2 Mar 2016 08:47:13 +0000 (09:47 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 2 Mar 2016 09:45:52 +0000 (09:45 +0000)
commit6d2aa549de1fc998581d216de3853aa131aa4446
tree76ecfc517079dfe3118bc96e0f523252a5618a82
parent22b39ca3f22ac46a42731447aadc0a5109078241
arm64: mm: check at build time that PAGE_OFFSET divides the VA space evenly

Commit 8439e62a1561 ("arm64: mm: use bit ops rather than arithmetic in
pa/va translations") changed the boundary check against PAGE_OFFSET from
an arithmetic comparison to a bit test. This means we now silently assume
that PAGE_OFFSET is a power of 2 that divides the kernel virtual address
space into two equal halves. So make that assumption explicit.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/init.c