Skip to contentSkip to conversation

cs8900 compile fix

PATCH New Ladislav Michl 3 participants 4 messages Mar 23, 2009 – Mar 28, 2009 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cs8900 compile fix

cs8900.c: In function 'eth_init':
cs8900.c:164: warning: passing argument 2 of 'eth_getenv_enetaddr' from incompatible pointer type cs8900.c:165: error: invalid operands to binary <<
cs8900.c:166: error: invalid operands to binary <<
cs8900.c:167: error: invalid operands to binary <<

drivers/net/cs8900.c +1 -1
index 0557fcd..5e2b3b0 100644
@@ -151,7 +151,7 @@ void eth_halt (void)
 
 int eth_init (bd_t * bd)
 {
-	uchar *enetaddr[6];
+	uchar enetaddr[6];
 
 	/* verify chip id */
 	if (get_reg_init_bus (PP_ChipID) != 0x630e) {
#1 lore raw

PATCH 1/1 cs8900 compile fix

Quoted 7 lines · Ladislav Michl

cs8900.c: In function 'eth_init':
cs8900.c:164: warning: passing argument 2 of 'eth_getenv_enetaddr' from incompatible pointer type cs8900.c:165: error: invalid operands to binary <<
cs8900.c:166: error: invalid operands to binary <<
cs8900.c:167: error: invalid operands to binary <<

Wolfgang please apply asap a lot of arm are break due to this

Best Regards,
J.

#2 lore raw

PATCH 1/1 cs8900 compile fix

Dear Jean-Christophe PLAGNIOL-VILLARD,

Quoted 11 lines · In message <[email protected]> you wrote:
Quoted 7 lines · Ladislav Michl

cs8900.c: In function 'eth_init':
cs8900.c:164: warning: passing argument 2 of 'eth_getenv_enetaddr' from incompatible pointer type cs8900.c:165: error: invalid operands to binary <<
cs8900.c:166: error: invalid operands to binary <<
cs8900.c:167: error: invalid operands to binary <<

Wolfgang please apply asap a lot of arm are break due to this

Done.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Not one hundred percent efficient, of course ... but nothing ever is.
	-- Kirk, "Metamorphosis", stardate 3219.8
#3 lore raw

PATCH 1/1 cs8900 compile fix

In reply to Ladislav Michl

Dear Ladislav Michl,

drivers/net/cs8900.c

Quoted 9 lines · In message <[email protected]> you wrote:

cs8900.c: In function 'eth_init':
cs8900.c:164: warning: passing argument 2 of 'eth_getenv_enetaddr' from incompatible pointer type cs8900.c:165: error: invalid operands to binary <<
cs8900.c:166: error: invalid operands to binary <<
cs8900.c:167: error: invalid operands to binary <<

drivers/net/cs8900.c +0 -0

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A failure will not appear until a unit has passed final inspection.