diff options
author | 2019-08-13 16:46:11 +0100 | |
---|---|---|
committer | 2019-08-14 13:05:35 +0100 | |
commit | 96628f0fb18080a4166fc9eab8f7fd062d860667 (patch) | |
tree | daa0bed086bd029c26e7e1b0827f11293b74119d /scripts/gdb/linux/utils.py | |
parent | arm64: memory: Ensure address tag is masked in conversion macros (diff) | |
download | wireguard-linux-96628f0fb18080a4166fc9eab8f7fd062d860667.tar.xz wireguard-linux-96628f0fb18080a4166fc9eab8f7fd062d860667.zip |
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions