Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -1
+2 -1
drivers/irqchip/irq-imx-gpcv2.c
··· 261 261 case 4: 262 262 writel_relaxed(~0, reg + GPC_IMR1_CORE2); 263 263 writel_relaxed(~0, reg + GPC_IMR1_CORE3); 264 - case 2: /* FALLTHROUGH */ 264 + /* fall through */ 265 + case 2: 265 266 writel_relaxed(~0, reg + GPC_IMR1_CORE0); 266 267 writel_relaxed(~0, reg + GPC_IMR1_CORE1); 267 268 }