summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2018-12-15 09:10:46 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2018-12-15 09:10:46 +0000
commit893b0aff9a7aa68d2fcc999f16d66d142f180ca8 (patch)
treebe88f4824ea551579b7b5a20eee9781fa97f69ad
parent9c8114c20d1876c8053d58dd92ea2a81c67dc198 (diff)
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>
-rw-r--r--drivers/irqchip/irq-imx-gpcv2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c
index 17a2dad2d4c2..d13269c9effc 100644
--- a/drivers/irqchip/irq-imx-gpcv2.c
+++ b/drivers/irqchip/irq-imx-gpcv2.c
@@ -261,7 +261,8 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node,
case 4:
writel_relaxed(~0, reg + GPC_IMR1_CORE2);
writel_relaxed(~0, reg + GPC_IMR1_CORE3);
- case 2: /* FALLTHROUGH */
+ /* fall through */
+ case 2:
writel_relaxed(~0, reg + GPC_IMR1_CORE0);
writel_relaxed(~0, reg + GPC_IMR1_CORE1);
}