[realtek] rtl8139.c Compile Failure

Donald Becker becker@scyld.com
Tue Jan 28 18:22:01 2003


On Tue, 28 Jan 2003, Darryl Cousins wrote:

> I'm trying to compile realtek_cd.o for use on a laptop with a rtl8139 compatible 
> network card.

I don't recommend using that approach.
Use the standard driver compile method and pci-scan.

> # gcc -DCARDBUS -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c -o realtek_cb.o \
>  -I/usr/src/pcmcia/include/ -I/usr/src/linux-2.4.20/include \ 
>  -include /usr/src/linux-2.4.20/include/linux/modversions.h
> 
> rtl8139.c: In function `rtl8139_detach':
> rtl8139.c:1651: warning: `next' might be used uninitialized in this function
> #

This is a new warning, but the compiler is wrong.
It will always be initialized.

There must be some other problem.

-- 
Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Scyld Beowulf cluster system
Annapolis MD 21403			410-990-9993