Skip to contentSkip to conversation

net/mlx4: fix sparse warnings on TX control flags, endianess

PATCH In review Yevgeny Petrilin 1 participant 1 message Mar 6, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 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
index a5bb0b7d..8f4e655 100644
@@ -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