Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: ath79: Fix fall-through warning for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a
warning by explicitly adding a fallthrough pseudo-keyword to indicate
that the code is intended to fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

authored by

Gustavo A. R. Silva and committed by
Bartosz Golaszewski
d49ee562 bc5d0984

+1
+1
drivers/gpio/gpio-ath79.c
··· 123 123 switch (flow_type) { 124 124 case IRQ_TYPE_EDGE_RISING: 125 125 polarity |= mask; 126 + fallthrough; 126 127 case IRQ_TYPE_EDGE_FALLING: 127 128 case IRQ_TYPE_EDGE_BOTH: 128 129 break;