linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][next] gpio: ath79: Fix fall-through warning for Clang
@ 2020-11-19 17:09 Gustavo A. R. Silva
  2020-12-01 14:50 ` Bartosz Golaszewski
  0 siblings, 1 reply; 2+ messages in thread
From: Gustavo A. R. Silva @ 2020-11-19 17:09 UTC (permalink / raw)
  To: Alban Bedel, Linus Walleij, Bartosz Golaszewski
  Cc: linux-gpio, linux-kernel, Gustavo A. R. Silva, linux-hardening

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>
---
 drivers/gpio/gpio-ath79.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath79.c
index d5359341cc6b..678ddd375891 100644
--- a/drivers/gpio/gpio-ath79.c
+++ b/drivers/gpio/gpio-ath79.c
@@ -123,6 +123,7 @@ static int ath79_gpio_irq_set_type(struct irq_data *data,
 	switch (flow_type) {
 	case IRQ_TYPE_EDGE_RISING:
 		polarity |= mask;
+		fallthrough;
 	case IRQ_TYPE_EDGE_FALLING:
 	case IRQ_TYPE_EDGE_BOTH:
 		break;
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-01 14:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-19 17:09 [PATCH][next] gpio: ath79: Fix fall-through warning for Clang Gustavo A. R. Silva
2020-12-01 14:50 ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).