diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2012-03-06 04:04:02 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-06 15:19:17 -0500 |
commit | 966684d581c9c04202e6612a792e36ae7bc5fd59 (patch) | |
tree | b9f28b29eb56ad72f6694787137d1c36dc6696c8 /drivers | |
parent | 4ef2a435bea24330781cbfe910a05810f17079d2 (diff) | |
download | linux-966684d581c9c04202e6612a792e36ae7bc5fd59.tar.bz2 |
net/mlx4: fix sparse warnings on TX blue flame buffer
The blue flame buffer is defined to be of type void __iomem *
but was passed to mlx4_bf_copy which gets unsigned long * .
This triggered sparse warning on different address spaces,
fix that by changing mlx4_bf_copy first param to be of type void __iomem * .
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_tx.c b/drivers/net/ethernet/mellanox/mlx4/en_tx.c index 008f0af5cc8b..17968244c399 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_tx.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_tx.c @@ -584,7 +584,7 @@ u16 mlx4_en_select_queue(struct net_device *dev, struct sk_buff *skb) return skb_tx_hash(dev, skb); } -static void mlx4_bf_copy(unsigned long *dst, unsigned long *src, unsigned bytecnt) +static void mlx4_bf_copy(void __iomem *dst, unsigned long *src, unsigned bytecnt) { __iowrite64_copy(dst, src, bytecnt / 8); } |