diff options
author | Will Deacon <[email protected]> | 2019-08-13 16:46:11 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2019-08-14 13:05:35 +0100 |
commit | 96628f0fb18080a4166fc9eab8f7fd062d860667 (patch) | |
tree | daa0bed086bd029c26e7e1b0827f11293b74119d /scripts/patch-kernel | |
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 <[email protected]>
Reviewed-by: Steve Capper <[email protected]>
Tested-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions