]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irqchip/loongson-eiointc: Use correct struct type in eiointc_domain_alloc()
authorBibo Mao <maobibo@loongson.cn>
Tue, 30 Jan 2024 08:27:20 +0000 (16:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:24:59 +0000 (09:24 +0100)
commitfcb82e9739f261138852e0a4a0e149a93be3458b
treefb9f1b5b72da27cb63862b1bd7b811d2b6c1bf8a
parent0589dff4fbf4a7b88a909a34ecfa7b5d3daf51f5
irqchip/loongson-eiointc: Use correct struct type in eiointc_domain_alloc()

[ Upstream commit f1c2765c6afcd1f71f76ed8c9bf94acedab4cecb ]

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: dd281e1a1a93 ("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>
drivers/irqchip/irq-loongson-eiointc.c