pinctrl: baytrail: Mark expected switch fall-throughs
Subsystems (3)
PATCH 1/1 pinctrl: baytrail: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 1292308 ("Missing break in switch")
Addresses-Coverity-ID: 1292309 ("Missing break in switch")
--- drivers/pinctrl/intel/pinctrl-baytrail.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/pinctrl/intel/pinctrl-baytrail.c +2 -0
@@ -1542,11 +1542,13 @@ static void byt_irq_unmask(struct irq_data *d)switch (irqd_get_trigger_type (d)) {case IRQ_TYPE_LEVEL_HIGH : value |=BYT_TRIG_LVL ; +/* fall through */ case IRQ_TYPE_EDGE_RISING : value |=BYT_TRIG_POS ;break ;case IRQ_TYPE_LEVEL_LOW : value |=BYT_TRIG_LVL ; +/* fall through */ case IRQ_TYPE_EDGE_FALLING : value |=BYT_TRIG_NEG ;break ;
Signature · 1 line
2.7.4
Quoted 6 lines · Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 1292308 ("Missing break in switch")
Addresses-Coverity-ID: 1292309 ("Missing break in switch")Signed-off-by Gustavo A. R. Silva <[email protected]>
Quoted 5 lines · Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 1292308 ("Missing break in switch")
Addresses-Coverity-ID: 1292309 ("Missing break in switch")
I hope these special tags are accepted by the community at large. Has there been discussion?
Quoted 1 line
Signed-off-by Gustavo A. R. Silva <[email protected]>
Patch applied with Mika's ACK.
Yours,
Linus Walleij
Hi Linus,
Quoted 12 lines · Linus Walleij
Quoted 5 lines · Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 1292308 ("Missing break in switch")
Addresses-Coverity-ID: 1292309 ("Missing break in switch")I hope these special tags are accepted by the community at large. Has there been discussion?
Yes. This is information we want to keep on the changelog:
http://lkml.iu.edu/hypermail/linux/kernel/1710.3/04013.html
Quoted 4 lines
Quoted 1 line
Signed-off-by Gustavo A. R. Silva <[email protected]>Patch applied with Mika's ACK.
Thanks
--
Gustavo