net/mlx5: cmd: Fix memset with byte count warning
Fix sparse warning: drivers/net/ethernet/mellanox/mlx5/core/cmd.c:1949:15: warning: memset with byte count of 271720 mlx5_cmd_stats array is too big to be held inline in mlx5_cmd. Allocate it separately. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
parent
9ff2e92c46
commit
2553f421f4
3 changed files with 16 additions and 8 deletions
|
|
@ -298,7 +298,7 @@ struct mlx5_cmd {
|
|||
struct mlx5_cmd_debug dbg;
|
||||
struct cmd_msg_cache cache[MLX5_NUM_COMMAND_CACHES];
|
||||
int checksum_disabled;
|
||||
struct mlx5_cmd_stats stats[MLX5_CMD_OP_MAX];
|
||||
struct mlx5_cmd_stats *stats;
|
||||
};
|
||||
|
||||
struct mlx5_port_caps {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue