gpiolib: acpi: Fix fall-through warnings for Clang
PATCH 1/1 gpiolib: acpi: Fix fall-through warnings for Clang
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.
--- drivers/gpio/gpiolib-acpi.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/gpiolib-acpi.c +1 -0
@@ -233,6 +233,7 @@ acpi_gpio_to_gpiod_flags(const struct acpi_resource_gpio *agpio, int polarity)default :break ; } +break ;default :break ; }
Signature · 1 line
2.27.0
Quoted 4 lines · Gustavo A. R. Silva
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.
Quoted 21 lines
--- drivers/gpio/gpiolib-acpi.c | 1 + 1 file changed, 1 insertion(+)drivers/gpio/gpiolib-acpi.c +1
-1@@ -233,6 +233,7 @@ acpi_gpio_to_gpiod_flags(const struct acpi_resource_gpio *agpio, int polarity)default :break ; } +break ;default :break ; } --2.27.0
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 28 lines · Andy Shevchenko
Quoted 4 lines · Gustavo A. R. Silva
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.
Reviewed-by Andy Shevchenko <[email protected]>Quoted 18 lines
--- drivers/gpio/gpiolib-acpi.c | 1 + 1 file changed, 1 insertion(+)drivers/gpio/gpiolib-acpi.c +1
-0@@ -233,6 +233,7 @@ acpi_gpio_to_gpiod_flags(const struct acpi_resource_gpio *agpio, int polarity)default :break ; } +break ;default :break ; }
Quoted 8 lines
Quoted 3 lines
--
2.27.0--
With Best Regards,
Andy Shevchenko
Are you taking it through your tree?
Bartosz
Quoted 19 lines · Bartosz Golaszewski
Quoted 16 lines · Andy Shevchenko
Quoted 4 lines · Gustavo A. R. Silva
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.
Reviewed-by Andy Shevchenko <[email protected]>Quoted 6 lines
--- drivers/gpio/gpiolib-acpi.c | 1 + 1 file changed, 1 insertion(+)
Quoted 14 lines
Quoted 4 lines
Quoted 4 lines
drivers/gpio/gpiolib-acpi.c +0
-0Quoted 8 lines
drivers/gpio/gpiolib-acpi.c acpi_gpio_to_gpiod_flags(const struct acpi_resource_gpio *agpio, int polarity) · line 239
Quoted 8 lines
drivers/gpio/gpiolib-acpi.c +1
-0@@ -233,6 +233,7 @@ acpi_gpio_to_gpiod_flags(const struct acpi_resource_gpio *agpio, int polarity)default :break ; } +break ;default :break ; }Are you taking it through your tree?
I don't have anything else, so please proceed directly. That's why I gave the tag.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Bartosz Golaszewski
AppliedQuoted 24 lines · Gustavo A. R. Silva
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.
--- drivers/gpio/gpiolib-acpi.c | 1 + 1 file changed, 1 insertion(+)drivers/gpio/gpiolib-acpi.c +1
-1@@ -233,6 +233,7 @@ acpi_gpio_to_gpiod_flags(const struct acpi_resource_gpio *agpio, int polarity)default :break ; } +break ;default :break ; } --
Quoted 2 lines
2.27.0
Applied, thanks!
Bartosz