Skip to contentSkip to conversation

drivers/net/smc911x.c: Fix GCC 4.6 warning

PATCH New Anatolij Gustschin 2 participants 11 messages May 20, 2012 – May 21, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/net/smc911x.c: Fix GCC 4.6 warning

smc911x.c: In function 'smc911x_initialize':
smc911x.c:288:12: warning: assignment from incompatible pointer type [enabled by default]

---
 drivers/net/smc911x.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/net/smc911x.c +1 -2
index e34b487..b2aed7e 100644
@@ -161,8 +161,7 @@ static int smc911x_init(struct eth_device *dev, bd_t * bd)
 	return 0;
 }
 
-static int smc911x_send(struct eth_device *dev,
-			volatile void *packet, int length)
+static int smc911x_send(struct eth_device *dev, void *packet, int length)
 {
 	u32 *data = (u32*)packet;
 	u32 tmplen;
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 drivers/usb/eth/smsc95xx.c: Fix GCC 4.6 warning

Fix:
smsc95xx.c: In function 'smsc95xx_eth_get_info':
smsc95xx.c:869:12: warning: assignment from incompatible pointer type [enabled by default]

---
 drivers/usb/eth/smsc95xx.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/usb/eth/smsc95xx.c +1 -2
index 2f63340..c7aebea 100644
@@ -657,8 +657,7 @@ static int smsc95xx_init(struct eth_device *eth, bd_t *bd)
 	return 0;
 }
 
-static int smsc95xx_send(struct eth_device *eth, volatile void* packet,
-			 int length)
+static int smsc95xx_send(struct eth_device *eth, void* packet, int length)
 {
 	struct ueth_data *dev = (struct ueth_data *)eth->priv;
 	int err;
Signature · 1 line
1.7.1
#2 lore raw

PATCH 1/1 drivers/usb/eth/smsc95xx.c: Fix GCC 4.6 warning

Quoted 6 lines · Anatolij Gustschin

Fix:
smsc95xx.c: In function 'smsc95xx_eth_get_info':
smsc95xx.c:869:12: warning: assignment from incompatible pointer type [enabled by default]

Applied, thanks.

-Joe

#3 lore raw

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

In reply to Anatolij Gustschin

Fix:
mpc5xxx_fec.c: In function 'mpc5xxx_fec_initialize':
mpc5xxx_fec.c:920: warning: assignment from incompatible pointer type

---
 drivers/net/mpc5xxx_fec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/mpc5xxx_fec.c +1 -1
index bc8c922..3d180db 100644
@@ -707,7 +707,7 @@ static void rfifo_print(char *devname, mpc5xxx_fec_priv *fec)
 
 /********************************************************************/
 
-static int mpc5xxx_fec_send(struct eth_device *dev, volatile void *eth_data,
+static int mpc5xxx_fec_send(struct eth_device *dev, void *eth_data,
 		int data_length)
 {
 	/*
Signature · 1 line
1.7.1
#4 lore raw

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

Quoted 8 lines · On Mon, 21 May 2012 00:22:57 +0200 Anatolij Gustschin <[email protected]> wrote:

Fix:
mpc5xxx_fec.c: In function 'mpc5xxx_fec_initialize':
mpc5xxx_fec.c:920: warning: assignment from incompatible pointer type

---
 drivers/net/mpc5xxx_fec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Tested on TQM5200 board.

#5 lore raw

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

Quoted 7 lines · Anatolij Gustschin
Quoted 4 lines · On Mon, 21 May 2012 00:22:57 +0200 Anatolij Gustschin <[email protected]> wrote:

Fix:
mpc5xxx_fec.c: In function 'mpc5xxx_fec_initialize':
mpc5xxx_fec.c:920: warning: assignment from incompatible pointer type

Quoted 8 lines
Quoted 4 lines

---
?drivers/net/mpc5xxx_fec.c | ? ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)

Tested on TQM5200 board.

Applied, thanks.

-Joe

#6 lore raw

PATCH 1/1 arch/arm/cpu/ixp/npe/npe.c: Fix build warning

In reply to Anatolij Gustschin

Fix:
npe.c: In function 'npe_initialize':
npe.c:630:13: warning: assignment from incompatible pointer type

---
 arch/arm/cpu/ixp/npe/npe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/cpu/ixp/npe/npe.c +1 -1
index f0e02bf..1fe3a95 100644
@@ -518,7 +518,7 @@ static void npe_halt(struct eth_device *dev)
 }
 
 
-static int npe_send(struct eth_device *dev, volatile void *packet, int len)
+static int npe_send(struct eth_device *dev, void *packet, int len)
 {
 	struct npe *p_npe = (struct npe *)dev->priv;
 	u8 *dest;
Signature · 1 line
1.7.1
#7 lore raw

PATCH 1/1 arch/arm/cpu/ixp/npe/npe.c: Fix build warning

Quoted 5 lines · Anatolij Gustschin

Fix:
npe.c: In function 'npe_initialize':
npe.c:630:13: warning: assignment from incompatible pointer type

Applied, thanks.

-Joe

#8 lore raw

PATCH 1/1 drivers/usb/eth/asix.c: Fix build warning

In reply to Anatolij Gustschin

Fix:
asix.c: In function 'asix_eth_get_info':
asix.c:629:12: warning: assignment from incompatible pointer type

---
 drivers/usb/eth/asix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/eth/asix.c +1 -1
index 2f116c0..a3bf51a 100644
@@ -419,7 +419,7 @@ out_err:
 	return -1;
 }
 
-static int asix_send(struct eth_device *eth, volatile void *packet, int length)
+static int asix_send(struct eth_device *eth, void *packet, int length)
 {
 	struct ueth_data *dev = (struct ueth_data *)eth->priv;
 	int err;
Signature · 1 line
1.7.1
#9 lore raw

PATCH 1/1 drivers/usb/eth/asix.c: Fix build warning

Quoted 5 lines · Anatolij Gustschin

Fix:
asix.c: In function 'asix_eth_get_info':
asix.c:629:12: warning: assignment from incompatible pointer type

Applied, thanks.

-Joe