• Holger Schurig's avatar
    libertas spi: fix sparse errors · d18ba452
    Holger Schurig authored
    This fixes the following sparse warnings:
    
    $ make modules SUBDIRS=drivers/net/wireless/libertas C=1 CF=-D__CHECK_ENDIAN__
    make: Entering directory `/usr/src/linux-wl'
      CHECK   drivers/net/wireless/libertas/if_spi.c
    drivers/net/wireless/libertas/if_spi.c:137:16: warning: incorrect type in initializer (different base types)
    drivers/net/wireless/libertas/if_spi.c:137:16:    expected unsigned short [unsigned] [usertype] reg_out
    drivers/net/wireless/libertas/if_spi.c:137:16:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:191:16: warning: incorrect type in initializer (different base types)
    drivers/net/wireless/libertas/if_spi.c:191:16:    expected unsigned short [unsigned] [usertype] reg_out
    drivers/net/wireless/libertas/if_spi.c:191:16:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:256:24: warning: incorrect type in argument 1 (different base types)
    drivers/net/wireless/libertas/if_spi.c:256:24:    expected restricted __le32 const [usertype] *p
    drivers/net/wireless/libertas/if_spi.c:256:24:    got unsigned int *<noident>
    drivers/net/wireless/libertas/if_spi.c:243:24: warning: incorrect type in argument 1 (different base types)
    drivers/net/wireless/libertas/if_spi.c:243:24:    expected restricted __le16 const [usertype] *p
    drivers/net/wireless/libertas/if_spi.c:243:24:    got unsigned short *<noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:243:24: warning: incorrect type in argument 1 (different base types)
    drivers/net/wireless/libertas/if_spi.c:243:24:    expected restricted __le16 const [usertype] *p
    drivers/net/wireless/libertas/if_spi.c:243:24:    got unsigned short *<noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:243:24: warning: incorrect type in argument 1 (different base types)
    drivers/net/wireless/libertas/if_spi.c:243:24:    expected restricted __le16 const [usertype] *p
    drivers/net/wireless/libertas/if_spi.c:243:24:    got unsigned short *<noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:243:24: warning: incorrect type in argument 1 (different base types)
    drivers/net/wireless/libertas/if_spi.c:243:24:    expected restricted __le16 const [usertype] *p
    drivers/net/wireless/libertas/if_spi.c:243:24:    got unsigned short *<noident>
    drivers/net/wireless/libertas/if_spi.c:243:24: warning: incorrect type in argument 1 (different base types)
    drivers/net/wireless/libertas/if_spi.c:243:24:    expected restricted __le16 const [usertype] *p
    drivers/net/wireless/libertas/if_spi.c:243:24:    got unsigned short *<noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:171:7: warning: incorrect type in assignment (different base types)
    drivers/net/wireless/libertas/if_spi.c:171:7:    expected unsigned short [unsigned] [usertype] buff
    drivers/net/wireless/libertas/if_spi.c:171:7:    got restricted __le16 [usertype] <noident>
    drivers/net/wireless/libertas/if_spi.c:243:24: warning: incorrect type in argument 1 (different base types)
    drivers/net/wireless/libertas/if_spi.c:243:24:    expected restricted __le16 const [usertype] *p
    drivers/net/wireless/libertas/if_spi.c:243:24:    got unsigned short *<noident>
    Signed-off-by: default avatarHolger Schurig <hs4233@mail.mn-solutions.de>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    d18ba452
if_spi.c 30.8 KB