arm64: memory: Simplify virt_to_page() implementation
authorWill Deacon <will@kernel.org>
Tue, 13 Aug 2019 15:34:32 +0000 (16:34 +0100)
committerWill Deacon <will@kernel.org>
Wed, 14 Aug 2019 12:07:49 +0000 (13:07 +0100)
commit9ba33dcc6bef4e56c762b446f0000f27ee737b8b
tree7e21d0a1f4cac0431ba2dbb59933ccd53a88184c
parent96628f0fb18080a4166fc9eab8f7fd062d860667
arm64: memory: Simplify virt_to_page() implementation

Build virt_to_page() on top of virt_to_pfn() so we can avoid the need
for explicit shifting.

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>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/memory.h