Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gustavo A. R. Silva and committed by
Greg Kroah-Hartman
25b22e35 169d3606

+2
+1
drivers/usb/misc/appledisplay.c
··· 89 89 dev_err(dev, 90 90 "OVERFLOW with data length %d, actual length is %d\n", 91 91 ACD_URB_BUFFER_LEN, pdata->urb->actual_length); 92 + /* fall through */ 92 93 case -ECONNRESET: 93 94 case -ENOENT: 94 95 case -ESHUTDOWN:
+1
drivers/usb/renesas_usbhs/mod_gadget.c
··· 502 502 case READ_STATUS_STAGE: 503 503 case WRITE_STATUS_STAGE: 504 504 usbhs_dcp_control_transfer_done(pipe); 505 + /* fall through */ 505 506 default: 506 507 return ret; 507 508 }