]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
net/mlx4: fix sparse warnings on TX blue flame buffer
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 6 Mar 2012 04:04:02 +0000 (04:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Mar 2012 20:19:17 +0000 (15:19 -0500)
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>
drivers/net/ethernet/mellanox/mlx4/en_tx.c

index 008f0af5cc8bfc5cc6a9f23767fbdbaba0d47cc1..17968244c399509b169540388b8b1d971739eef1 100644 (file)
@@ -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);
 }