Message ID | 20231115193649.8756-6-saeed@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 9454e56433924af11451795b67d084eb14c1027f |
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_core.h b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h index 4aed1768b85f..78eb6b7097e1 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h @@ -181,7 +181,7 @@ struct mlx5_flow_rule { struct mlx5_flow_handle { int num_rules; - struct mlx5_flow_rule *rule[]; + struct mlx5_flow_rule *rule[] __counted_by(num_rules); }; /* Type of children is mlx5_flow_group */