archive mirror
 help / color / mirror / Atom feed
From: "Gustavo A. R. Silva" <>
To: Mika Westerberg <>,
	Andy Shevchenko <>,
	Linus Walleij <>,
	Bartosz Golaszewski <>
	"Gustavo A. R. Silva" <>,
Subject: [PATCH][next] gpiolib: acpi: Fix fall-through warnings for Clang
Date: Thu, 19 Nov 2020 11:07:39 -0600	[thread overview]
Message-ID: <20201119170739.GA22665@embeddedor> (raw)

In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.

Signed-off-by: Gustavo A. R. Silva <>
 drivers/gpio/gpiolib-acpi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index 6cc5f91bfe2e..e37a57d0a2f0 100644
--- a/drivers/gpio/gpiolib-acpi.c
+++ b/drivers/gpio/gpiolib-acpi.c
@@ -233,6 +233,7 @@ acpi_gpio_to_gpiod_flags(const struct acpi_resource_gpio *agpio, int polarity)
+		break;

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

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-19 17:07 Gustavo A. R. Silva [this message]
2020-11-19 18:47 ` [PATCH][next] gpiolib: acpi: Fix fall-through warnings for Clang Andy Shevchenko
2020-11-30 16:51   ` Bartosz Golaszewski
2020-11-30 17:15     ` Andy Shevchenko
2020-12-01 14:48 ` 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=20201119170739.GA22665@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).