Skip to contentSkip to conversation

net/mlx4: fix sparse warnings on TX blue flame buffer

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

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

PATCH 3/8 net/mlx4: fix sparse warnings on TX blue flame buffer

From: Or Gerlitz <[email protected]>

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 * .

---
 drivers/net/ethernet/mellanox/mlx4/en_tx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ethernet/mellanox/mlx4/en_tx.c +1 -1
index 008f0af..1796824 100644
@@ -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);
 }
Signature · 1 line
1.7.7