Skip to contentSkip to conversation

drivers/net/mpc512x_fec.c: Fix build warning

PATCH New Anatolij Gustschin 2 participants 2 messages May 21, 2012 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/net/mpc512x_fec.c: Fix build warning

Fix:
mpc512x_fec.c: In function 'mpc512x_fec_initialize':
mpc512x_fec.c:634: warning: assignment from incompatible pointer type

Tested on mpc5121ads board using tftp and nfs commands.

---
 drivers/net/mpc512x_fec.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/mpc512x_fec.c +2 -2
index 0d5efd5..ad57d56 100644
@@ -452,8 +452,8 @@ static void mpc512x_fec_halt (struct eth_device *dev)
 
 /********************************************************************/
 
-static int mpc512x_fec_send (struct eth_device *dev, volatile void *eth_data,
-		int data_length)
+static int mpc512x_fec_send(struct eth_device *dev, void *eth_data,
+			    int data_length)
 {
 	/*
 	 * This routine transmits one frame.  This routine only accepts
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 drivers/net/mpc512x_fec.c: Fix build warning

Quoted 8 lines · Anatolij Gustschin

Fix:
mpc512x_fec.c: In function 'mpc512x_fec_initialize':
mpc512x_fec.c:634: warning: assignment from incompatible pointer type

Tested on mpc5121ads board using tftp and nfs commands.

Applied, thanks.

-Joe