Message ID | 20231115193649.8756-5-saeed@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 0f452a862a9f4eef172e9e66d828343b611190ee |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next,V2,01/13] net/mlx5: print change on SW reset semaphore returns busy | expand |
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c index 17fe30a4c06c..0c26d707eed2 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c @@ -539,7 +539,7 @@ struct mlx5_fc_bulk { u32 base_id; int bulk_len; unsigned long *bitmask; - struct mlx5_fc fcs[]; + struct mlx5_fc fcs[] __counted_by(bulk_len); }; static void mlx5_fc_init(struct mlx5_fc *counter, struct mlx5_fc_bulk *bulk,