]> git.itanic.dy.fi Git - linux-stable/commit
usb: fix a few cases of -Wfallthrough
authorNick Desaulniers <ndesaulniers@google.com>
Wed, 11 Nov 2020 01:47:14 +0000 (17:47 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Nov 2020 14:20:52 +0000 (15:20 +0100)
commit1d6903a617a221f9d8295847ffaa3c39cd6b13ba
tree10c069c02c67c40284fd1bed23c3596f3a9c8795
parent57cde551225bb09fa40ca3938e06d59fc529ff90
usb: fix a few cases of -Wfallthrough

The "fallthrough" pseudo-keyword was added as a portable way to denote
intentional fallthrough. Clang will still warn on cases where there is a
fallthrough to an immediate break. Add explicit breaks for those cases.

Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20201111014716.260633-1-ndesaulniers@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/config.c
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ohci-hcd.c
drivers/usb/host/ohci-hub.c
drivers/usb/host/xhci-ring.c