archive mirror
 help / color / mirror / Atom feed
From: "Gustavo A. R. Silva" <>
To: Alban Bedel <>,
	Linus Walleij <>,
	Bartosz Golaszewski <>
	"Gustavo A. R. Silva" <>,
Subject: [PATCH][next] gpio: ath79: Fix fall-through warning for Clang
Date: Thu, 19 Nov 2020 11:09:01 -0600	[thread overview]
Message-ID: <20201119170901.GA22703@embeddedor> (raw)

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.

Signed-off-by: Gustavo A. R. Silva <>
 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) {
 		polarity |= mask;
+		fallthrough;

             reply	other threads:[~2020-11-19 17:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-19 17:09 Gustavo A. R. Silva [this message]
2020-12-01 14:50 ` [PATCH][next] gpio: ath79: Fix fall-through warning for Clang Bartosz Golaszewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201119170901.GA22703@embeddedor \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).