net/mlx4: fix sparse warnings on TX control flags, endianess
Subsystems (3)
PATCH 2/8 net/mlx4: fix sparse warnings on TX control flags, endianess
From: Or Gerlitz <[email protected]>
Fix sparse warnings on incompatibility between the endianess of the ctrl_flags field of struct mlx4_en_priv to the srcrb_flags field of struct mlx4_wqe_ctrl_seg by changing the former to be __be32 instead of u32.
Signed-off-by Or Gerlitz <[email protected]>
--- drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h +1 -1
@@ -453,7 +453,7 @@ struct mlx4_en_priv {int base_qpn;struct mlx4_en_rss_map rss_map; -u32 ctrl_flags; +__be32 ctrl_flags;u32 flags;#define MLX4_EN_FLAG_PROMISC 0x1#define MLX4_EN_FLAG_MC_PROMISC 0x2
Signature · 1 line
1.7.7