Re: 2.5.3-pre3 -- aironet4500_core.c:2839: In function `awc_init': incompatible types in return

Evgeniy Polyakov (johnpol@2ka.mipt.ru)
Wed, 23 Jan 2002 10:45:50 +0300


On 22 Jan 2002 23:34:08 -0800
Miles Lane <miles@megapathdsl.net> wrote:

>
> make[2]: Entering directory `/usr/src/linux/drivers/net'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE
> -DEXPORT_SYMTAB -c aironet4500_core.c aironet4500_core.c: In function
> `awc_init': aironet4500_core.c:2839: incompatible types in return
> aironet4500_core.c:2841: warning: control reaches end of non-void
> function make[2]: *** [aironet4500_core.o] Error 1

Try this patch, but it is given WITHOUT ANY WARRANTY.
I even cann't test to compile it.
And there is not ieee card here.
So, it was wrote with luck and common sense.
I hope it will help you.

P.S. If this is full bullshit... then i apologize and go learning Linux
kernel again...

--- ./drivers/net/aironet4500_core.c~ Sun Sep 30 23:26:06 2001
+++ ./drivers/net/aironet4500_core.c Wed Jan 23 10:44:03 2002
@@ -2836,7 +2836,7 @@
return 0;
final:
printk(KERN_ERR "aironet init failed \n");
- return NODEV;
+ return -1;

};

Evgeniy Polyakov ( s0mbre ).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/