net/mlx4: fixing sparse warnings when copying mac, address to gid entry
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Tue, 6 Mar 2012 04:04:26 +0000 (04:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Mar 2012 20:19:17 +0000 (15:19 -0500)
commit2ab573c586446ebab9d7a3e340bd4ff8fc2c70d4
tree54af8551d6354c33f97cf0235383324d619fcb9b
parent39b2c4ebb433acf751c28a59dde110767af24d23
net/mlx4: fixing sparse warnings when copying mac, address to gid entry

The mac should be written as __be64 the gid. The warning was because
we changed the mac parameter, which is u64, by writing result of cpu_to_be64
into it. Fixing by using new variable of type __be64.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/port.c