Search Linux Wireless

Re: libertas warnings & bugs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2007-07-18 at 16:00 +0200, Johannes Berg wrote:
> Hi Dan,
> 
> As promised a few more warnings from libertas from my ppc64 build.
> 
> drivers/net/wireless/libertas/cmd.c: In function ‘wlan_cmd_802_11_set_wep’:
> drivers/net/wireless/libertas/cmd.c:189: warning: large integer implicitly truncated to unsigned type
> drivers/net/wireless/libertas/cmd.c:195: warning: large integer implicitly truncated to unsigned type
> 
> The code is:
> wep->keytype[i] = cpu_to_le16(cmd_type_wep_40_bit);
> 
> and it's fairly obvious why it warns: keytype[i] is a u8 so always ends
> up 0...
> 
> drivers/net/wireless/libertas/debugfs.c: In function ‘libertas_getscantable’:
> drivers/net/wireless/libertas/debugfs.c:85: warning: format ‘%08llx’ expects type ‘long long unsigned int’, but argument 4 has type ‘u64’
> drivers/net/wireless/libertas/debugfs.c:85: warning: format ‘%08llx’ expects type ‘long long unsigned int’, but argument 4 has type ‘u64’
> 
> probably just needs a cast to unsigned long long.

Thanks, doing patch review and such today, I'll try to roll these in.

Dan


-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux