ACPI: Fix fall-through warning for Clang
PATCH 1/1 ACPI: Fix fall-through warning for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a fallthrough warning by simply dropping the empty default case at the bottom.
This contributes to the ongoing efforts to globally enable -Wimplicit-fallthrough for Clang.
Suggested-by Rafael J. Wysocki <[email protected]>
Link https://lore.kernel.org/lkml/CAJZ5v0hLYWKX__oZdcCY0D20pNqpw8SkiTPOCNOtpqe--QLp4Q@mail.gmail.com/ open here
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/acpi/sbshc.c | 1 - 1 file changed, 1 deletion(-)
drivers/acpi/sbshc.c +0 -1
@@ -231,7 +231,6 @@ static int smbus_alarm(void *context)case ACPI_SBS_BATTERY :acpi_os_execute (OSL_NOTIFY_HANDLER , acpi_smbus_callback, hc); -default :; }mutex_unlock (&hc->lock);return 0 ;
Signature · 1 line
2.27.0
Quoted 21 lines · Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a fallthrough warning by simply dropping the empty default case at the bottom.
This contributes to the ongoing efforts to globally enable -Wimplicit-fallthrough for Clang.
Suggested-by Rafael J. Wysocki <[email protected]>Link https://lore.kernel.org/lkml/CAJZ5v0hLYWKX__oZdcCY0D20pNqpw8SkiTPOCNOtpqe--QLp4Q@mail.gmail.com/ open hereSigned-off-by Gustavo A. R. Silva <[email protected]>--- drivers/acpi/sbshc.c | 1 - 1 file changed, 1 deletion(-)drivers/acpi/sbshc.c +0
-0
drivers/acpi/sbshc.c static int smbus_alarm(void *context)
Quoted 8 lines
drivers/acpi/sbshc.c +0
-2@@ -231,7 +231,6 @@ static int smbus_alarm(void *context)case ACPI_SBS_BATTERY :acpi_os_execute (OSL_NOTIFY_HANDLER , acpi_smbus_callback, hc); -default :; }mutex_unlock (&hc->lock);return 0 ; --
Applied as 5.14 material, thanks!