• R
    qlge: Fix sparse warnings for byte swapping in qlge_ethool.c · 8306c952
    Ron Mercer 提交于
    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: NRon Mercer <ron.mercer@qlogic.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    8306c952
qlge_ethtool.c 10.7 KB