[PATCH] libertas: gcc 4.1 compile fix.

Marcelo Tosatti marcelo at kvack.org
Mon Jul 3 21:56:19 EDT 2006


Andreas, 

On Tue, Jul 04, 2006 at 02:27:32AM +0200, Andreas Henriksson wrote:
> gcc version 4.1.2 20060630 (prerelease) (Debian 4.1.1-7)
> 
> 
> CC [M]  drivers/net/wireless/libertas/if_usb.o
> drivers/net/wireless/libertas/if_usb.c:58: error: initializer element is not constant
> drivers/net/wireless/libertas/if_usb.c:58: error: (near initialization for 'if_usb_table[0].driver_info')
> drivers/net/wireless/libertas/if_usb.c:60: error: initializer element is not constant
> drivers/net/wireless/libertas/if_usb.c:60: error: (near initialization for 'if_usb_table[1].driver_info')
> make[1]: *** [drivers/net/wireless/libertas/if_usb.o] Error 1
> 
> 
> (I left the device_info-part commented out, since it's probably wrong on
> 64bit machines. Other drivers uses flags to indicate card. 

I committed your patch without .device_info commented entries. Since
they are unused there is no point in keeping them around.

> There's also lots of warnings about using int/u32 and pointers when
> compiling on x86_64.)

Can you post them, please?

Thanks!



More information about the libertas-dev mailing list