arm64: mm: Simplify definition of virt_addr_valid()
authorWill Deacon <will@kernel.org>
Fri, 9 Aug 2019 14:27:32 +0000 (15:27 +0100)
committerWill Deacon <will@kernel.org>
Fri, 9 Aug 2019 14:39:11 +0000 (15:39 +0100)
commitd2d73d2fef421ca0d447946cc430fdf5c4c5b06a
treed5fb552c672d629da8408b3aa53cca0c9b1321c5
parentd2c68de192cfb90f607a80c6b10c41ebd8a3de6a
arm64: mm: Simplify definition of virt_addr_valid()

_virt_addr_valid() is defined as the same value in two places and rolls
its own version of virt_to_pfn() in both cases.

Consolidate these definitions by inlining a simplified version directly
into virt_addr_valid().

Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/memory.h