irqchip: tb10x: use 'fallthrough' to eliminate a warning
PATCH 1/1 irqchip: tb10x: use 'fallthrough' to eliminate a warning
Use the 'fallthrough' macro to document that this switch case does indeed fall through to the next case.
../drivers/irqchip/irq-tb10x.c: In function 'tb10x_irq_set_type':../drivers/irqchip/irq-tb10x.c:62:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
62 | flow_type = IRQ_TYPE_LEVEL_LOW;../drivers/irqchip/irq-tb10x.c:63:2: note: here
63 | case IRQ_TYPE_LEVEL_LOW:
| ^~~~--- drivers/irqchip/irq-tb10x.c | 1 + 1 file changed, 1 insertion(+)
drivers/irqchip/irq-tb10x.c +1 -0
@@ -60,6 +60,7 @@ static int tb10x_irq_set_type(struct irqbreak ;case IRQ_TYPE_NONE : flow_type =IRQ_TYPE_LEVEL_LOW ; + fallthrough;case IRQ_TYPE_LEVEL_LOW : mod ^= im; pol ^= im;
[irqchip: irq/irqchip-next] irqchip/tb10x: Use 'fallthrough' to eliminate a warning
The following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: a6992bbe9774e044d3d0f973593d655c53efe089 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/a6992bbe9774e044d3d0f973593d655c53efe089 Author: Randy Dunlap <[email protected]> AuthorDate: Wed, 21 Apr 2021 22:16:20 -07:00 Committer: Marc Zyngier <[email protected]> CommitterDate: Thu, 22 Apr 2021 13:53:33 +01:00
irqchip/tb10x: Use 'fallthrough' to eliminate a warning
Use the 'fallthrough' macro to document that this switch case does indeed fall through to the next case.
../drivers/irqchip/irq-tb10x.c: In function 'tb10x_irq_set_type':../drivers/irqchip/irq-tb10x.c:62:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
62 | flow_type = IRQ_TYPE_LEVEL_LOW;../drivers/irqchip/irq-tb10x.c:63:2: note: here
63 | case IRQ_TYPE_LEVEL_LOW:
| ^~~~--- drivers/irqchip/irq-tb10x.c | 1 + 1 file changed, 1 insertion(+)
drivers/irqchip/irq-tb10x.c +1 -0
@@ -60,6 +60,7 @@ static int tb10x_irq_set_type(struct irq_data *data, unsigned int flow_type)break ;case IRQ_TYPE_NONE : flow_type =IRQ_TYPE_LEVEL_LOW ; + fallthrough;case IRQ_TYPE_LEVEL_LOW : mod ^= im; pol ^= im;