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

usb: musb: gadget: Use fallthrough pseudo-keyword

In order to enable -Wimplicit-fallthrough for Clang[1], replace the
existing /* FALLTHROUGH */ comment with the new pseudo-keyword
macro fallthrough[2].

[1] https://git.kernel.org/linus/e2079e93f562c7f7a030eb7642017ee5eabaaa10
[2] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20201008222849.GA18634@embeddedor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gustavo A. R. Silva and committed by
Greg Kroah-Hartman
93578a25 6c8cf369

+1 -1
+1 -1
drivers/usb/musb/musb_gadget_ep0.c
··· 1024 1024 case MUSB_EP0_STAGE_ACKWAIT: /* STALL for zero-length data */ 1025 1025 case MUSB_EP0_STAGE_RX: /* control-OUT data */ 1026 1026 csr = musb_readw(regs, MUSB_CSR0); 1027 - /* FALLTHROUGH */ 1027 + fallthrough; 1028 1028 1029 1029 /* It's also OK to issue stalls during callbacks when a non-empty 1030 1030 * DATA stage buffer has been read (or even written).