diff options
author | Will Deacon <will@kernel.org> | 2019-08-13 16:46:11 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2019-08-14 13:05:35 +0100 |
commit | 96628f0fb18080a4166fc9eab8f7fd062d860667 (patch) | |
tree | daa0bed086bd029c26e7e1b0827f11293b74119d /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h | |
parent | 577c2b35283fbadcc9ce4b56304ccea3ec8a5ca1 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h')
0 files changed, 0 insertions, 0 deletions