[U-Boot] [PATCH] arch/powerpc/cpu/mpc8260/ether_scc.c: Fix compile warning

Fix this: ether_scc.c: In function 'mpc82xx_scc_enet_initialize': ether_scc.c:377:14: warning: assignment from incompatible pointer type
Signed-off-by: Joe Hershberger joe.hershberger@ni.com --- arch/powerpc/cpu/mpc8260/ether_scc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/cpu/mpc8260/ether_scc.c b/arch/powerpc/cpu/mpc8260/ether_scc.c index 1c040f0..3c71219 100644 --- a/arch/powerpc/cpu/mpc8260/ether_scc.c +++ b/arch/powerpc/cpu/mpc8260/ether_scc.c @@ -105,7 +105,7 @@ typedef volatile struct CommonBufferDescriptor { static RTXBD *rtx;
-static int sec_send(struct eth_device *dev, volatile void *packet, int length) +static int sec_send(struct eth_device *dev, void *packet, int length) { int i; int result = 0;

Fix this: pcnet.c: In function 'pcnet_initialize': pcnet.c:224:13: warning: assignment from incompatible pointer type
Signed-off-by: Joe Hershberger joe.hershberger@ni.com --- drivers/net/pcnet.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index 45066c8..c028a44 100644 --- a/drivers/net/pcnet.c +++ b/drivers/net/pcnet.c @@ -141,8 +141,7 @@ static int pcnet_check (struct eth_device *dev) }
static int pcnet_init (struct eth_device *dev, bd_t * bis); -static int pcnet_send (struct eth_device *dev, volatile void *packet, - int length); +static int pcnet_send(struct eth_device *dev, void *packet, int length); static int pcnet_recv (struct eth_device *dev); static void pcnet_halt (struct eth_device *dev); static int pcnet_probe (struct eth_device *dev, bd_t * bis, int dev_num); @@ -415,8 +414,7 @@ static int pcnet_init (struct eth_device *dev, bd_t * bis) return 0; }
-static int pcnet_send (struct eth_device *dev, volatile void *packet, - int pkt_len) +static int pcnet_send(struct eth_device *dev, void *packet, int pkt_len) { int i, status; struct pcnet_tx_head *entry = &lp->tx_ring[lp->cur_tx];

Fix this: rtl8169.c: In function 'rtl8169_initialize': rtl8169.c:907:13: warning: assignment from incompatible pointer type
Signed-off-by: Joe Hershberger joe.hershberger@ni.com --- drivers/net/rtl8169.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index 1ad13bd..9864fd7 100644 --- a/drivers/net/rtl8169.c +++ b/drivers/net/rtl8169.c @@ -464,7 +464,7 @@ static int rtl_recv(struct eth_device *dev) /************************************************************************** SEND - Transmit a frame ***************************************************************************/ -static int rtl_send(struct eth_device *dev, volatile void *packet, int length) +static int rtl_send(struct eth_device *dev, void *packet, int length) { /* send the packet to destination */
participants (1)
-
Joe Hershberger