From nobody Tue Apr 7 22:01:45 2026 Received: from imap5.colo.codethink.co.uk (imap5.colo.codethink.co.uk [78.40.148.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B74263C942B for ; Wed, 11 Mar 2026 10:22:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.40.148.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773224550; cv=none; b=kDUGNc1EWR4+vbQZjpyzr4d5S9lli0ljkns+/VLPZDX1GIGc72/JwBnC9r0srdcxP3LUxzmVWvzarJYmmrbISJjIw8OZBP3u9SzsHJcZNMjW04jSbgHvYKdU98Vxp4B9FuYOVE53sOM7a/mmKtAr8rob1DGBajalzHoYbijkaBM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773224550; c=relaxed/simple; bh=DRhrQqEPtAl75Omf248GZuWXdBdCWV4t/+ls0FiVYcE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=pRWBy5wkvW3ixdZHKiXgQ3V0Oklfvtw5Sd77y7rNM7Jx2aKzmE3BvHdVX107T35K7kaKI9EYIAoPrhAE+rm7fhP+YVMpHwDOmBOYJtLqwzFovX7Ofd+PDfYmI9QyN2QmvKiBetjPyf063v/3xa/Od52LhPs+aXIxI+6ncjWkydk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=codethink.co.uk; spf=pass smtp.mailfrom=codethink.com; dkim=pass (2048-bit key) header.d=codethink.co.uk header.i=@codethink.co.uk header.b=tvro1P2l; arc=none smtp.client-ip=78.40.148.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=codethink.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codethink.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codethink.co.uk header.i=@codethink.co.uk header.b="tvro1P2l" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codethink.co.uk; s=imap5-20230908; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:In-Reply-To: References; bh=H6UZVAcNXBaTLTexeP5JDCR8y93YukQku0lGW/Zb9zU=; b=tvro1P2l/to0um uu7HLvT4zWU/Q38gHgRcU5yozgOJnk+dG7k4tZJPTkufd3DBYKIu6C50ycHGAxXfL2A1m+f/wW1o1 +bUd7AKVNXnVnhkkLQVwZn4Iy90zlqaLaQC1p56ffJmI34Q7u8VgOfYKRb9Ls6L/VZhX8KV8M0EaE uw78rjRb4hGlyzjikEf5H/JGmC8sTQdthfdXk9fTJjkdZCgOoB07Bpvq7r/NCJft49KDMU+9nMJub tAKuQrS/Qfk+A10/PjSHRxvuzKT0xpttVbetW5lc+np4EwuGtfbCtxp3U+eP70TdIdtjBIqrDMTlr KT2DHtv9VG4eQvcLkx8Q==; Received: from [63.135.74.212] (helo=rainbowdash) by imap5.colo.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1w0Ghn-00F2nj-Ua; Wed, 11 Mar 2026 10:22:19 +0000 Received: from ben by rainbowdash with local (Exim 4.99.1) (envelope-from ) id 1w0Ghn-00000001iV5-1ztc; Wed, 11 Mar 2026 10:22:19 +0000 From: Ben Dooks To: linux-riscv@lists.infradead.org, palmer@dabbelt.com, pjw@kernel.org Cc: linux-kernel@vger.kernel.org, alex@ghiti.fr, Ben Dooks Subject: [PATCH] RISC-V: ACPI: fix two __iomem cast warnings Date: Wed, 11 Mar 2026 10:22:17 +0000 Message-Id: <20260311102217.409376-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.37.2.352.g3c44437643 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: srv_ts003@codethink.com Content-Type: text/plain; charset="utf-8" The __acpi_map_table() and __acpi_unmap_table() return and take __iomem tagged pointers. Add a cast to fix the sparse warnings: arch/riscv/kernel/acpi.c:216:30: warning: incorrect type in return expressi= on (different address spaces) arch/riscv/kernel/acpi.c:216:30: expected void [noderef] __iomem * arch/riscv/kernel/acpi.c:216:30: got void * arch/riscv/kernel/acpi.c:224:24: warning: incorrect type in argument 1 (dif= ferent address spaces) arch/riscv/kernel/acpi.c:224:24: expected void *addr arch/riscv/kernel/acpi.c:224:24: got void [noderef] __iomem *map Signed-off-by: Ben Dooks --- arch/riscv/kernel/acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/kernel/acpi.c b/arch/riscv/kernel/acpi.c index 71698ee11621..0d52942f94d5 100644 --- a/arch/riscv/kernel/acpi.c +++ b/arch/riscv/kernel/acpi.c @@ -213,7 +213,7 @@ void __init __iomem *__acpi_map_table(unsigned long phy= s, unsigned long size) if (!size) return NULL; =20 - return early_memremap(phys, size); + return (void __iomem *)early_memremap(phys, size); } =20 void __init __acpi_unmap_table(void __iomem *map, unsigned long size) @@ -221,7 +221,7 @@ void __init __acpi_unmap_table(void __iomem *map, unsig= ned long size) if (!map || !size) return; =20 - early_memunmap(map, size); + early_memunmap((void __force *)map, size); } =20 void __iomem *acpi_os_ioremap(acpi_physical_address phys, acpi_size size) --=20 2.37.2.352.g3c44437643