]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc/addnote: Fix overflow on 32-bit builds
authorBen Collins <bcollins@kernel.org>
Tue, 22 Apr 2025 02:31:13 +0000 (22:31 -0400)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 11 Nov 2025 09:02:32 +0000 (14:32 +0530)
commit825ce89a3ef17f84cf2c0eacfa6b8dc9fd11d13f
treee0a5d7ef316302e3773aad83e9758784f4e6dee9
parentcbc8bd1b7d905b3f746542cc726837a954a46bd8
powerpc/addnote: Fix overflow on 32-bit builds

The PUT_64[LB]E() macros need to cast the value to unsigned long long
like the GET_64[LB]E() macros. Caused lots of warnings when compiled
on 32-bit, and clobbered addresses (36-bit P4080).

Signed-off-by: Ben Collins <bcollins@kernel.org>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/2025042122-mustard-wrasse-694572@boujee-and-buff
arch/powerpc/boot/addnote.c