]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
net: axienet: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 28 May 2021 19:58:31 +0000 (14:58 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sun, 30 May 2021 20:44:39 +0000 (13:44 -0700)
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding a fallthrough statement instead of just
letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20210528195831.GA39131@embeddedor
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c

index b508c9453f4097a67b92ab219e8fadb4d448b4ec..e29ad9a86a3c79926c4d0a315855a379c97dbb41 100644 (file)
@@ -1543,6 +1543,7 @@ static void axienet_validate(struct phylink_config *config,
        case PHY_INTERFACE_MODE_MII:
                phylink_set(mask, 100baseT_Full);
                phylink_set(mask, 10baseT_Full);
+               fallthrough;
        default:
                break;
        }