Skip to content

Commit 893b0af

Browse files
author
Marc Zyngier
committed
irqchip/irq-imx-gpcv2: Silence "fall through" warning
The -Wimplicit-fallthrough option requires that the /* fall through */ comment is placed in the 'case' statement that falls through, rather than in the following one. Case seems to matter as well. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent 9c8114c commit 893b0af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/irqchip/irq-imx-gpcv2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node,
261261
case 4:
262262
writel_relaxed(~0, reg + GPC_IMR1_CORE2);
263263
writel_relaxed(~0, reg + GPC_IMR1_CORE3);
264-
case 2: /* FALLTHROUGH */
264+
/* fall through */
265+
case 2:
265266
writel_relaxed(~0, reg + GPC_IMR1_CORE0);
266267
writel_relaxed(~0, reg + GPC_IMR1_CORE1);
267268
}

0 commit comments

Comments
 (0)