Searched hist:96628 (Results 1 - 1 of 1) sorted by relevance

/linux-master/arch/arm64/include/asm/
H A Dmemory.hdiff 96628f0f Tue Aug 13 09:46:11 MDT 2019 Will Deacon <will@kernel.org> arm64: memory: Rewrite default page_to_virt()/virt_to_page()

The default implementations of page_to_virt() and virt_to_page() are
fairly confusing to read and the former evaluates its 'page' parameter
twice in the macro

Rewrite them so that the computation is expressed as 'base + index' in
both cases and the parameter is always evaluated exactly once.

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>

Completed in 98 milliseconds