Skip to content

Commit f1c2765

Browse files
bibo-maoKAGA-KOKO
authored andcommitted
irqchip/loongson-eiointc: Use correct struct type in eiointc_domain_alloc()
eiointc_domain_alloc() uses struct eiointc, which is not defined, for a pointer. Older compilers treat that as a forward declaration and due to assignment of a void pointer there is no warning emitted. As the variable is then handed in as a void pointer argument to irq_domain_set_info() the code is functional. Use struct eiointc_priv instead. [ tglx: Rewrote changelog ] Fixes: dd281e1 ("irqchip: Add Loongson Extended I/O interrupt controller support") Signed-off-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Huacai Chen <chenhuacai@loongson.cn> Link: https://lore.kernel.org/r/20240130082722.2912576-2-maobibo@loongson.cn
1 parent b0344d6 commit f1c2765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-loongson-eiointc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static int eiointc_domain_alloc(struct irq_domain *domain, unsigned int virq,
241241
int ret;
242242
unsigned int i, type;
243243
unsigned long hwirq = 0;
244-
struct eiointc *priv = domain->host_data;
244+
struct eiointc_priv *priv = domain->host_data;
245245

246246
ret = irq_domain_translate_onecell(domain, arg, &hwirq, &type);
247247
if (ret)

0 commit comments

Comments
 (0)