Skip to content

Commit 76b66e8

Browse files
inochisaKAGA-KOKO
authored andcommitted
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: e96b93a ("irqchip/sg2042-msi: Add the Sophgo SG2044 MSI interrupt controller") Reported-by: kernel test robot <[email protected]> Signed-off-by: Inochi Amaoto <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Chen Wang <[email protected]> Link: https://lore.kernel.org/all/[email protected] Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
1 parent e96b93a commit 76b66e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-sg2042-msi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static void sg2044_msi_irq_ack(struct irq_data *d)
9898
{
9999
struct sg204x_msi_chipdata *data = irq_data_get_irq_chip_data(d);
100100

101-
writel(0, (u32 *)data->reg_clr + d->hwirq);
101+
writel(0, (u32 __iomem *)data->reg_clr + d->hwirq);
102102
irq_chip_ack_parent(d);
103103
}
104104

0 commit comments

Comments
 (0)