]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: mm: Cast start/end markers to char *, not u64
authorSam Edwards <cfsworks@gmail.com>
Thu, 4 Sep 2025 00:52:07 +0000 (17:52 -0700)
committerWill Deacon <will@kernel.org>
Tue, 16 Sep 2025 19:39:49 +0000 (20:39 +0100)
commit030b3ffbdac75005ef73af752a42cd48c7bba155
tree18ac643433355ea6705117fe8a827dc2b2050a49
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
arm64: mm: Cast start/end markers to char *, not u64

There are a few memset() calls in map_kernel.c that cast marker-symbol
addresses to u64 in order to perform pointer subtraction (range size
computation).

Cast them with (char *) instead, aligning with idiomatic C pointer
arithmetic.

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>
arch/arm64/kernel/pi/map_kernel.c