Skip to content
  • Larry Finger's avatar
    hostap: Fix sparse warnings · 8216bfe2
    Larry Finger authored
    
    
    A compilation with the command "make C=2 CF="-D__CHECK_ENDIAN__" \
                                    drivers/net/wireless/hostap/"
    
     yields the following warnings:
    
      CHECK   drivers/net/wireless/hostap/hostap_info.c
    drivers/net/wireless/hostap/hostap_info.c:156:43: warning: incorrect type in
    argument 2 (different signedness)
    drivers/net/wireless/hostap/hostap_info.c:156:43:    expected unsigned long
    volatile *addr
    drivers/net/wireless/hostap/hostap_info.c:156:43:    got long *<noident>
    drivers/net/wireless/hostap/hostap_info.c:294:44: warning: incorrect type in
    argument 2 (different signedness)
    drivers/net/wireless/hostap/hostap_info.c:294:44:    expected unsigned long
    volatile *addr
    drivers/net/wireless/hostap/hostap_info.c:294:44:    got long *<noident>
    drivers/net/wireless/hostap/hostap_info.c:487:12: warning: incorrect type in
    argument 2 (different signedness)
    drivers/net/wireless/hostap/hostap_info.c:487:12:    expected unsigned long
    volatile *addr
    drivers/net/wireless/hostap/hostap_info.c:487:12:    got long *<noident>
    drivers/net/wireless/hostap/hostap_info.c:491:12: warning: incorrect type in
    argument 2 (different signedness)
    drivers/net/wireless/hostap/hostap_info.c:491:12:    expected unsigned long
    volatile *addr
    drivers/net/wireless/hostap/hostap_info.c:491:12:    got long *<noident>
    
    The warnings are fixed with the following compile-tested fix:
    
    Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
    Acked-by: default avatarJouni Malinen <j@w1.fi>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    8216bfe2