diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-05-28 22:58:31 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-05-30 23:44:39 +0300 |
commit | 03a6ef31f2bc3e14522298a9617e240fb0f5954b (patch) | |
tree | 929b4615632653462213fe8e259af207216e1de4 /drivers/net | |
parent | d3f2c48de7b86c17c93d412e08e7214c6e108c8a (diff) | |
download | linux-03a6ef31f2bc3e14522298a9617e240fb0f5954b.tar.xz |
net: axienet: Fix fall-through warning for Clang
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index b508c9453f40..e29ad9a86a3c 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -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; } |