patch-2.4.21 linux-2.4.21/drivers/net/macmace.c

Next file: linux-2.4.21/drivers/net/mii.c
Previous file: linux-2.4.21/drivers/net/mac8390.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/net/macmace.c linux-2.4.21/drivers/net/macmace.c
@@ -332,8 +332,8 @@
 		return -ENOMEM;
 	}
 
-	mp->rx_ring_phys = (unsigned char *) virt_to_bus(mp->rx_ring);
-	mp->tx_ring_phys = (unsigned char *) virt_to_bus(mp->tx_ring);
+	mp->rx_ring_phys = (unsigned char *) virt_to_bus((void *)mp->rx_ring);
+	mp->tx_ring_phys = (unsigned char *) virt_to_bus((void *)mp->tx_ring);
 
 	/* We want the Rx buffer to be uncached and the Tx buffer to be writethrough */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)