mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
irqchip/loongson-eiointc: Use correct struct type in eiointc_domain_alloc()
[ Upstream commitf1c2765c6a
] 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:dd281e1a1a
("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
0589dff4fb
commit
fcb82e9739
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ static int eiointc_domain_alloc(struct irq_domain *domain, unsigned int virq,
|
||||||
int ret;
|
int ret;
|
||||||
unsigned int i, type;
|
unsigned int i, type;
|
||||||
unsigned long hwirq = 0;
|
unsigned long hwirq = 0;
|
||||||
struct eiointc *priv = domain->host_data;
|
struct eiointc_priv *priv = domain->host_data;
|
||||||
|
|
||||||
ret = irq_domain_translate_onecell(domain, arg, &hwirq, &type);
|
ret = irq_domain_translate_onecell(domain, arg, &hwirq, &type);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Reference in a new issue