summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Tretter <m.tretter@pengutronix.de>2020-10-15 15:20:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-10-19 10:01:53 +0200
commitd6e7f108024ab92617a7296256c645a8d45bf053 (patch)
treee94f355c74fc7abb71c3f6240a11a77a40989405 /drivers
parentdc62c9c65c50dea80a738a0819c661c7151c5ed7 (diff)
downloadbarebox-d6e7f108024ab92617a7296256c645a8d45bf053.tar.gz
barebox-d6e7f108024ab92617a7296256c645a8d45bf053.tar.xz
net: macb: fix compiler warning for 64 bit systems
On arm64 the compiler prints the following warning, when the macb driver is enabled: warning: cast from pointer to integer of different size Add the same explicit cast as implemented for all other dma addresses in the macb driver. Fixes: befd110b5922 ("net: macb: init multiple dummy TX queues") Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/macb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index fa530cfe8e..188dbf2d8c 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -365,7 +365,7 @@ static int gmac_init_dummy_tx_queues(struct macb_device *macb)
MACB_BIT(TX_LAST) | MACB_BIT(TX_USED);
for (i = 1; i < num_queues; i++)
- gem_writel_queue_TBQP(macb, &macb->gem_q1_descs[0], i - 1);
+ gem_writel_queue_TBQP(macb, (ulong)macb->gem_q1_descs, i - 1);
return 0;
}