]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
lib/logic_iomem: Fix 32-bit build
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 Sep 2021 18:30:21 +0000 (20:30 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 09:59:39 +0000 (10:59 +0100)
commitde710bb0c5d8a8d31bf1dcc384c8dcbf20210cba
tree390a2424744772d169fab214df5d0621e74179a7
parenta126950be793a44feea570d2790acd5d517f4892
lib/logic_iomem: Fix 32-bit build

BugLink: https://bugs.launchpad.net/bugs/1959376
[ Upstream commit 4e84139e14af5ea60772cc4f33d7059aec76e0eb ]

On a 32-bit build, the (unsigned long long) casts throw warnings
(or errors) due to being to a different integer size. Cast to
uintptr_t first (with the __force for sparse) and then further
to get the consistent print on 32 and 64-bit.

Fixes: ca2e334232b6 ("lib: add iomem emulation (logic_iomem)")
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
lib/logic_iomem.c