projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebf8c9a
)
net/mlx4: fix sparse warnings on TX control flags, endianess
author
Or Gerlitz
<
[email protected]
>
Tue, 6 Mar 2012 04:03:41 +0000
(
04:03
+0000)
committer
David S. Miller
<
[email protected]
>
Tue, 6 Mar 2012 20:19:17 +0000
(15:19 -0500)
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]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
index a5bb0b7d339ad084832584890cf1a6428aaeffa9..8f4e655bd57bf4279b1d46c68cb4e58273cc4e2a 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
+++ b/
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
@@
-453,7
+453,7
@@
struct mlx4_en_priv {
int base_qpn;
struct mlx4_en_rss_map rss_map;
-
u
32 ctrl_flags;
+
__be
32 ctrl_flags;
u32 flags;
#define MLX4_EN_FLAG_PROMISC 0x1
#define MLX4_EN_FLAG_MC_PROMISC 0x2