• Andrew Gallatin's avatar
    myri10ge: fix most sparse warnings · 59e955ed
    Andrew Gallatin authored
    - convert remaining htonl/ntohl +__raw_read/__raw_writel to
      swab32 + readl/writel
    - add missing __iomem qualifier in myri10ge_open()
    - fix  dubious: x & !y warning by switching from logical to bitwise not
    
    The swab32 conversion fixes a bug in myri10ge_led() where
    big-endian machines would write the wrong pattern.
    
    The only remaining warning (lock context imbalance) is due to
    the use of __netif_tx_trylock(), and cannot easily be fixed.
    Signed-off-by: default avatarAndrew Gallatin <gallatin@myri.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    59e955ed
myri10ge.c 112 KB