From: Inochi Amaoto Date: Tue, 22 Apr 2025 00:38:03 +0000 (+0800) Subject: irqchip/sg2042-msi: Fix wrong type cast in sg2044_msi_irq_ack() X-Git-Tag: v6.16-rc1~188^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76b66e8c9d159eb3d1699e0fa80ceacf9a9ae627;p=thirdparty%2Fkernel%2Flinux.git irqchip/sg2042-msi: Fix wrong type cast in sg2044_msi_irq_ack() The type cast in sg2044_msi_irq_ack() lost the __iomem attribute, which makes the pointer type incorrect. Add it back. Fixes: e96b93a97c90 ("irqchip/sg2042-msi: Add the Sophgo SG2044 MSI interrupt controller") Reported-by: kernel test robot Signed-off-by: Inochi Amaoto Signed-off-by: Thomas Gleixner Reviewed-by: Chen Wang Link: https://lore.kernel.org/all/20250422003804.214264-1-inochiama@gmail.com Closes: https://lore.kernel.org/oe-kbuild-all/202504211251.B3aesulq-lkp@intel.com/ --- diff --git a/drivers/irqchip/irq-sg2042-msi.c b/drivers/irqchip/irq-sg2042-msi.c index 8a83c690b7609..a3e2a26d8495c 100644 --- a/drivers/irqchip/irq-sg2042-msi.c +++ b/drivers/irqchip/irq-sg2042-msi.c @@ -98,7 +98,7 @@ static void sg2044_msi_irq_ack(struct irq_data *d) { struct sg204x_msi_chipdata *data = irq_data_get_irq_chip_data(d); - writel(0, (u32 *)data->reg_clr + d->hwirq); + writel(0, (u32 __iomem *)data->reg_clr + d->hwirq); irq_chip_ack_parent(d); }