[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200104143306.21210-1-krzk@kernel.org>
Date: Sat, 4 Jan 2020 15:33:05 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: "David S. Miller" <davem@...emloft.net>,
Krzysztof Kozlowski <krzk@...nel.org>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] net: ethernet: 3c515: Fix cast from pointer to integer of different size
Pointer passed as integer should be cast to unsigned long to
avoid warning (compile testing on alpha architecture):
drivers/net/ethernet/3com/3c515.c: In function ‘corkscrew_start_xmit’:
drivers/net/ethernet/3com/3c515.c:1066:8: warning:
cast from pointer to integer of different size [-Wpointer-to-int-cast]
Signed-off-by: Krzysztof Kozlowski <krzk@...nel.org>
---
Only compile tested
---
drivers/net/ethernet/3com/3c515.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/3com/3c515.c b/drivers/net/ethernet/3com/3c515.c
index 1e233e2f0a5a..f5b4cacef07a 100644
--- a/drivers/net/ethernet/3com/3c515.c
+++ b/drivers/net/ethernet/3com/3c515.c
@@ -1063,7 +1063,7 @@ static netdev_tx_t corkscrew_start_xmit(struct sk_buff *skb,
#ifdef VORTEX_BUS_MASTER
if (vp->bus_master) {
/* Set the bus-master controller to transfer the packet. */
- outl((int) (skb->data), ioaddr + Wn7_MasterAddr);
+ outl((unsigned long)(skb->data), ioaddr + Wn7_MasterAddr);
outw((skb->len + 3) & ~3, ioaddr + Wn7_MasterLen);
vp->tx_skb = skb;
outw(StartDMADown, ioaddr + EL3_CMD);
--
2.17.1
Powered by blists - more mailing lists