arm64: memory: Simplify _VA_START and _PAGE_OFFSET definitions
authorWill Deacon <will@kernel.org>
Tue, 13 Aug 2019 15:58:36 +0000 (16:58 +0100)
committerWill Deacon <will@kernel.org>
Wed, 14 Aug 2019 12:08:40 +0000 (13:08 +0100)
commita5ac40f53bfa5e43d9c76e3c23415ee4afd71932
tree7bd6af379dccf8cb0590181103bd4101fa9e11aa
parent9ba33dcc6bef4e56c762b446f0000f27ee737b8b
arm64: memory: Simplify _VA_START and _PAGE_OFFSET definitions

Rather than subtracting from -1 and then adding 1, we can simply
subtract from 0.

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