Skip to content

Commit

Permalink
eth: bzwx: ne6x_vf: break when ETH_SS_TEST
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Avenger-285714 committed Nov 25, 2024
1 parent f88ecca commit a42b050
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/bzwx/nce/ne6x_vf/ne6xvf_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a42b050

Please sign in to comment.