• C
    netpoll: add RCU annotation to npinfo field · 5fbee843
    Cong Wang 提交于
    dev->npinfo is protected by RCU.
    
    This fixes the following sparse warnings:
    
    net/core/netpoll.c:177:48: error: incompatible types in comparison expression (different address spaces)
    net/core/netpoll.c:200:35: error: incompatible types in comparison expression (different address spaces)
    net/core/netpoll.c:221:35: error: incompatible types in comparison expression (different address spaces)
    net/core/netpoll.c:327:18: error: incompatible types in comparison expression (different address spaces)
    
    Cc: Eric Dumazet <eric.dumazet@gmail.com>
    Cc: David S. Miller <davem@davemloft.net>
    Signed-off-by: NCong Wang <amwang@redhat.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    5fbee843
netdevice.h 87.6 KB