• Ron Mercer's avatar
    qlge: Fix sparse warnings for byte swapping in qlge_ethool.c · 8306c952
    Ron Mercer authored
    
    
    drivers/net/qlge/qlge_ethtool.c:59:23: warning: cast to restricted type
    drivers/net/qlge/qlge_ethtool.c:59:21: warning: incorrect type in assignment (different base types)
    drivers/net/qlge/qlge_ethtool.c:59:21:    expected restricted unsigned short [usertype] irq_delay
    drivers/net/qlge/qlge_ethtool.c:59:21:    got unsigned short [unsigned] [usertype] <noident>
    drivers/net/qlge/qlge_ethtool.c:61:8: warning: cast to restricted type
    drivers/net/qlge/qlge_ethtool.c:60:21: warning: incorrect type in assignment (different base types)
    drivers/net/qlge/qlge_ethtool.c:60:21:    expected restricted unsigned short [usertype] pkt_delay
    drivers/net/qlge/qlge_ethtool.c:60:21:    got unsigned short [unsigned] [usertype] <noident>
    drivers/net/qlge/qlge_ethtool.c:82:23: warning: cast to restricted type
    drivers/net/qlge/qlge_ethtool.c:82:21: warning: incorrect type in assignment (different base types)
    drivers/net/qlge/qlge_ethtool.c:82:21:    expected restricted unsigned short [usertype] irq_delay
    drivers/net/qlge/qlge_ethtool.c:82:21:    got unsigned short [unsigned] [usertype] <noident>
    drivers/net/qlge/qlge_ethtool.c:84:8: warning: cast to restricted type
    drivers/net/qlge/qlge_ethtool.c:83:21: warning: incorrect type in assignment (different base types)
    drivers/net/qlge/qlge_ethtool.c:83:21:    expected restricted unsigned short [usertype] pkt_delay
    drivers/net/qlge/qlge_ethtool.c:83:21:    got unsigned short [unsigned] [usertype] <noident>
    Signed-off-by: default avatarRon Mercer <ron.mercer@qlogic.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8306c952
qlge_ethtool.c 10.7 KB