From 793ccdf141f1856eabca13fb20abac4e0f14bea8 Mon Sep 17 00:00:00 2001 From: WangYuli Date: Sun, 24 Nov 2024 14:19:42 +0800 Subject: [PATCH] eth: bzwx: ne6x_vf: break when ETH_SS_TEST Fix follow error with clang-19: drivers/net/ethernet/bzwx/nce/ne6x_vf/ne6xvf_ethtool.c:211:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] 211 | default: | ^ drivers/net/ethernet/bzwx/nce/ne6x_vf/ne6xvf_ethtool.c:211:2: note: insert 'break;' to avoid fall-through 211 | default: | ^ | break; 1 error generated. Signed-off-by: WangYuli --- drivers/net/ethernet/bzwx/nce/ne6x_vf/ne6xvf_ethtool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/bzwx/nce/ne6x_vf/ne6xvf_ethtool.c b/drivers/net/ethernet/bzwx/nce/ne6x_vf/ne6xvf_ethtool.c index 3fbab2d87066..be62f0f8bcf5 100644 --- a/drivers/net/ethernet/bzwx/nce/ne6x_vf/ne6xvf_ethtool.c +++ b/drivers/net/ethernet/bzwx/nce/ne6x_vf/ne6xvf_ethtool.c @@ -208,6 +208,7 @@ static void ne6xvf_get_strings(struct net_device *netdev, u32 stringset, u8 *dat break; case ETH_SS_TEST: memcpy(data, ne6xvf_gstrings_test, NE6XVF_TEST_LEN * ETH_GSTRING_LEN); + break; default: break; }