mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] irqchip/sg2042-msi: Fix wrong type cast in sg2044_msi_irq_ack
@ 2025-04-22  0:38 Inochi Amaoto
  2025-04-22  1:46 ` Chen Wang
  2025-04-24 12:28 ` [tip: irq/drivers] irqchip/sg2042-msi: Fix wrong type cast in sg2044_msi_irq_ack() tip-bot2 for Inochi Amaoto
  0 siblings, 2 replies; 3+ messages in thread
From: Inochi Amaoto @ 2025-04-22  0:38 UTC (permalink / raw)
  To: Thomas Gleixner, Inochi Amaoto, Chen Wang; +Cc: linux-kernel, kernel test robot

The type cast in sg2044_msi_irq_ack lost __iomem attribute,
which make the pointer type incorrect.

Add the miss "__iomem" attribute to fix it.

Fixes: e96b93a97c90 ("irqchip/sg2042-msi: Add the Sophgo SG2044 MSI interrupt controller")
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202504211251.B3aesulq-lkp@intel.com/
---
 drivers/irqchip/irq-sg2042-msi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-sg2042-msi.c b/drivers/irqchip/irq-sg2042-msi.c
index 8a83c690b760..a3e2a26d8495 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);
 }

--
2.49.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-24 12:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-22  0:38 [PATCH] irqchip/sg2042-msi: Fix wrong type cast in sg2044_msi_irq_ack Inochi Amaoto
2025-04-22  1:46 ` Chen Wang
2025-04-24 12:28 ` [tip: irq/drivers] irqchip/sg2042-msi: Fix wrong type cast in sg2044_msi_irq_ack() tip-bot2 for Inochi Amaoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®