Search Linux Wireless

Re: iwlwifi sparse warnings with __CHECK_ENDIAN__

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

 



I'm not sure that you are running latest iwlwifi.
There is only one warning with __CHECK_ENDIAN__ which I don't know how
to solve cleanly.
Yet the code is correct and it is even running on a  PPC machine.

Tomas

On 9/6/07, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:
> drivers/net/wireless/iwl-3945.c:949:3: warning: incorrect type in argument 3 (different base types)
> drivers/net/wireless/iwl-3945.c:949:3:    expected int
> drivers/net/wireless/iwl-3945.c:949:3:    got restricted unsigned short [usertype] board_revision
> drivers/net/wireless/iwl-3945.c:954:3: warning: incorrect type in argument 3 (different base types)
> drivers/net/wireless/iwl-3945.c:954:3:    expected int
> drivers/net/wireless/iwl-3945.c:954:3:    got restricted unsigned short [usertype] board_revision
> drivers/net/wireless/iwl-3945.c:1650:15: warning: cast from restricted type
> drivers/net/wireless/iwl-base.c:1703:17: warning: cast to restricted type
> drivers/net/wireless/iwl-base.c:2168:4: warning: incorrect type in initializer (different base types)
> drivers/net/wireless/iwl-base.c:2168:4:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2168:4:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2169:4: warning: incorrect type in initializer (different base types)
> drivers/net/wireless/iwl-base.c:2169:4:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2169:4:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2170:4: warning: incorrect type in initializer (different base types)
> drivers/net/wireless/iwl-base.c:2170:4:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2170:4:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2171:4: warning: incorrect type in initializer (different base types)
> drivers/net/wireless/iwl-base.c:2171:4:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2171:4:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2172:4: warning: incorrect type in initializer (different base types)
> drivers/net/wireless/iwl-base.c:2172:4:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2172:4:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2178:4: warning: incorrect type in initializer (different base types)
> drivers/net/wireless/iwl-base.c:2178:4:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2178:4:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2180:4: warning: incorrect type in initializer (different base types)
> drivers/net/wireless/iwl-base.c:2180:4:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2180:4:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2182:4: warning: incorrect type in initializer (different base types)
> drivers/net/wireless/iwl-base.c:2182:4:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2182:4:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2184:4: warning: incorrect type in initializer (different base types)
> drivers/net/wireless/iwl-base.c:2184:4:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2184:4:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2185:4: warning: incorrect type in initializer (different base types)
> drivers/net/wireless/iwl-base.c:2185:4:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2185:4:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2220:16: warning: incorrect type in assignment (different base types)
> drivers/net/wireless/iwl-base.c:2220:16:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2220:16:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2222:16: warning: incorrect type in assignment (different base types)
> drivers/net/wireless/iwl-base.c:2222:16:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2222:16:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2267:14: warning: incorrect type in assignment (different base types)
> drivers/net/wireless/iwl-base.c:2267:14:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2267:14:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2271:14: warning: incorrect type in assignment (different base types)
> drivers/net/wireless/iwl-base.c:2271:14:    expected restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-base.c:2271:14:    got restricted unsigned int [usertype] [force] <noident>
> drivers/net/wireless/iwl-base.c:2279:2: warning: incorrect type in argument 3 (different base types)
> drivers/net/wireless/iwl-base.c:2279:2:    expected int
> drivers/net/wireless/iwl-base.c:2279:2:    got restricted unsigned short [usertype] flags
> drivers/net/wireless/iwl-4965.c:490:18: warning: restricted degrades to integer
>
>
>
-
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