Skip to content

Commit b54f14e

Browse files
masneybgregkh
authored andcommitted
irqchip/irq-pic32-evic: Address warning related to wrong printf() formatter
[ Upstream commit 86be659 ] This driver is currently only build on 32 bit MIPS systems. When building it on x86_64, the following warning occurs: drivers/irqchip/irq-pic32-evic.c: In function ‘pic32_ext_irq_of_init’: ./include/linux/kern_levels.h:5:25: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] Update the printf() formatter in preparation for allowing this driver to be compiled on all architectures. Fixes: aaa8666 ("IRQCHIP: irq-pic32-evic: Add support for PIC32 interrupt controller") Signed-off-by: Brian Masney <bmasney@redhat.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260222-irqchip-pic32-v1-1-37f50d1f14af@redhat.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c429548 commit b54f14e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/irqchip/irq-pic32-evic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static void __init pic32_ext_irq_of_init(struct irq_domain *domain)
196196

197197
of_property_for_each_u32(node, pname, hwirq) {
198198
if (i >= ARRAY_SIZE(priv->ext_irqs)) {
199-
pr_warn("More than %d external irq, skip rest\n",
199+
pr_warn("More than %zu external irq, skip rest\n",
200200
ARRAY_SIZE(priv->ext_irqs));
201201
break;
202202
}

0 commit comments

Comments
 (0)