]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/tb10x: Use 'fallthrough' to eliminate a warning
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 22 Apr 2021 05:16:20 +0000 (22:16 -0700)
committerMarc Zyngier <maz@kernel.org>
Thu, 22 Apr 2021 12:53:33 +0000 (13:53 +0100)
commit96a733863098bbf6c6c79a5c94f2a2142c570a09
treefae12ec7d50eab859695e66dca3da754488e75a4
parent62afc184012e4f89e83b6e37c0013d9385ee7082
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:
      |  ^~~~

Fixes: 40811169d526 ("irqchip: Add TB10x interrupt controller driver")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Christian Ruppert <christian.ruppert@abilis.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210422051620.23021-1-rdunlap@infradead.org
drivers/irqchip/irq-tb10x.c