]> git.baikalelectronics.ru Git - 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)
committerRichard Weinberger <richard@nod.at>
Tue, 21 Dec 2021 20:27:21 +0000 (21:27 +0100)
commita47d728a3c28465bb9c8a910918a81575cc5a712
treef184e59cd55a342ffbc13e00332c1f0f09122e53
parent42afe9fb8895e3b6eef8a78102e4b4d21b0f0bfb
lib/logic_iomem: Fix 32-bit build

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: 920ed52431bb ("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>
lib/logic_iomem.c