
Hi All,
I have tried to cross-compile (arm-linux-gcc-3.4.0) u-boot source-code with smc91111.c driver enabled. I am getting this error, because of recent changes in gcc-3.4.x series to detect them.
----------snip-------------- arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/home/bluesky/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /public/data/omapts/linux/arm-tc/gcc-3.4.0-1/bin/../lib/gcc/arm-linux/3.4.0/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv6 -Wall -Wstrict-prototypes -c -o smc91111.o smc91111.c smc91111.c: In function `smc_phy_configure': smc91111.c:1343: error: label at end of compound statement make[1]: *** [smc91111.o] Error 1 make[1]: Leaving directory `/home/bluesky/u-boot/drivers' make: *** [drivers/libdrivers.a] Error 2 ----------snip--------------
code snippet: ----------snip-------------- /* Re-Configure the Receive/Phy Control register */ SMC_outw (RPC_DEFAULT, RPC_REG);
smc_phy_configure_exit: } ----------snip--------------
It seems to me that no one there tried the above combination. Simple solution is to put some dummy varibale initialisation _or_ is there any compiler switch to make it as warning.
===== ---Komal Shah
__________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250