arm64: mm: Remove bit-masking optimisations for PAGE_OFFSET and VMEMMAP_START
authorSteve Capper <steve.capper@arm.com>
Wed, 7 Aug 2019 15:55:13 +0000 (16:55 +0100)
committerWill Deacon <will@kernel.org>
Fri, 9 Aug 2019 10:15:46 +0000 (11:15 +0100)
commit9cb1c5ddd2c432834dd4f40c0170d6b639e8e5c3
tree542e9530ffca48ea725b668aba5c0541b8f9cb9b
parente21a712a9685488f5ce80495b37b9fdbe96c230d
arm64: mm: Remove bit-masking optimisations for PAGE_OFFSET and VMEMMAP_START

Currently there are assumptions about the alignment of VMEMMAP_START
and PAGE_OFFSET that won't be valid after this series is applied.

These assumptions are in the form of bitwise operators being used
instead of addition and subtraction when calculating addresses.

This patch replaces these bitwise operators with addition/subtraction.

Signed-off-by: Steve Capper <steve.capper@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/memory.h