[PATCH v2 2/2] net: rtl8169: silence compiler warning
Lucas Stach
dev at lynxeye.de
Tue Feb 24 13:00:19 PST 2015
Silence warning about cast from volatile to normal pointer,
as this is the intended bhavior here.
Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
drivers/net/rtl8169.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c
index 19f5763..f8a6500 100644
--- a/drivers/net/rtl8169.c
+++ b/drivers/net/rtl8169.c
@@ -236,8 +236,8 @@ static void rtl8169_init_ring(struct rtl8169_priv *priv)
dma_clean_range((unsigned long)priv->rx_buf,
(unsigned long)priv->rx_buf + NUM_RX_DESC * PKT_BUF_SIZE);
- memset(priv->tx_desc, 0, NUM_TX_DESC * sizeof(struct bufdesc));
- memset(priv->rx_desc, 0, NUM_RX_DESC * sizeof(struct bufdesc));
+ memset((void *)priv->tx_desc, 0, NUM_TX_DESC * sizeof(struct bufdesc));
+ memset((void *)priv->rx_desc, 0, NUM_RX_DESC * sizeof(struct bufdesc));
for (i = 0; i < NUM_RX_DESC; i++) {
if (i == (NUM_RX_DESC - 1))
--
2.1.0
More information about the barebox
mailing list