summaryrefslogtreecommitdiff
path: root/drivers/fastboot/fb_command.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2025-03-27 15:33:01 +0000
committerTom Rini <trini@konsulko.com>2025-04-08 16:23:51 -0600
commit06b1ebfe521d2729cd97db7dfed62469081f0ec3 (patch)
treeefbf5ad7a1692321402c7d7c738e50112fd2ed09 /drivers/fastboot/fb_command.c
parent26b2482f124ba831e40a44ea0cb093203fd8d747 (diff)
fastboot: annotate switch/case fallthrough case
The fastboot command handling uses an implicit switch/case fallthrough when receiving the OEM_CONSOLE command, but when this command is not enabled in Kconfig, to report this command as unknown. Add our "fallthrough;" statement-like macro before the default branch in the fastboot code, to avoid a warning when GCC's -Wimplicit-fallthrough warning option is enabled. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'drivers/fastboot/fb_command.c')
-rw-r--r--drivers/fastboot/fb_command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/fastboot/fb_command.c b/drivers/fastboot/fb_command.c
index e4484d65aca..2cdbac50ac4 100644
--- a/drivers/fastboot/fb_command.c
+++ b/drivers/fastboot/fb_command.c
@@ -186,6 +186,7 @@ void fastboot_multiresponse(int cmd, char *response)
}
break;
}
+ fallthrough;
default:
fastboot_fail("Unknown multiresponse command", response);
break;