From 2938eb1e022d7e1de23d89f941bc07b0776a2549 Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Thu, 27 Mar 2025 15:32:58 +0000 Subject: [PATCH] gadget: f_thor: annotate switch/case fallthrough Even though we seem to catch POWEROFF and EFSCLEAR commands in the THOR protocol request handling, we ultimately do not seem to handle them (apart from sending a response), so those commands still print an error message. Annotate the switch/case fallthrough in this case, to make this clear to the compiler. Signed-off-by: Andre Przywara Reviewed-by: Mattijs Korpershoek --- drivers/usb/gadget/f_thor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c index 54372118348..540b9f88237 100644 --- a/drivers/usb/gadget/f_thor.c +++ b/drivers/usb/gadget/f_thor.c @@ -138,6 +138,7 @@ static int process_rqt_cmd(struct udevice *udc, const struct rqt_box *rqt) case RQT_CMD_POWEROFF: case RQT_CMD_EFSCLEAR: send_rsp(udc, rsp); + fallthrough; default: printf("Command not supported -> cmd: %d\n", rqt->rqt_data); return -EINVAL; -- 2.39.5