diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2018-12-15 09:10:46 +0000 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2018-12-15 09:10:46 +0000 |
commit | 893b0aff9a7aa68d2fcc999f16d66d142f180ca8 (patch) | |
tree | be88f4824ea551579b7b5a20eee9781fa97f69ad /drivers | |
parent | 9c8114c20d1876c8053d58dd92ea2a81c67dc198 (diff) | |
download | linux-stable-893b0aff9a7aa68d2fcc999f16d66d142f180ca8.tar.gz linux-stable-893b0aff9a7aa68d2fcc999f16d66d142f180ca8.tar.bz2 linux-stable-893b0aff9a7aa68d2fcc999f16d66d142f180ca8.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/irqchip/irq-imx-gpcv2.c | 3 |
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); } |