diff options
author | Sam Edwards <cfsworks@gmail.com> | 2025-09-03 17:52:09 -0700 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2025-09-16 20:39:49 +0100 |
commit | b868fff5b10b6d09506e93e489ee19166bf6c5d2 (patch) | |
tree | b7dc33277ae0ca23cfc12b7fcb4a781b8223e130 /lib/debugobjects.c | |
parent | c56aa9a67a0853ffcf64ebe7f1dbe5a5a7c315cc (diff) |
arm64: mm: Represent physical memory with phys_addr_t and resource_size_t
This is a type-correctness cleanup to MMU/boot code that replaces
several instances of void * and u64 with phys_addr_t (to represent
addresses) and resource_size_t (to represent sizes) to emphasize that
the code in question concerns physical memory specifically.
The rationale for this change is to improve clarity and readability in
a few modules that handle both types (physical and virtual) of address
and differentiation is essential.
I have left u64 in cases where the address may be either physical or
virtual, where the address is exclusively virtual but used in heavy
pointer arithmetic, and in cases I may have overlooked. I do not
necessarily consider u64 the ideal type in those situations, but it
avoids breaking existing semantics in this cleanup.
This patch provably has no effect at runtime: I have verified that
.text of vmlinux is identical after this change.
Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions