• E
    inetpeer: inetpeer_invalidate_tree() cleanup · da557374
    Eric Dumazet 提交于
    No need to use cmpxchg() in inetpeer_invalidate_tree() since we hold
    base lock.
    
    Also use correct rcu annotations to remove sparse errors
    (CONFIG_SPARSE_RCU_POINTER=y)
    
    net/ipv4/inetpeer.c:144:19: error: incompatible types in comparison
    expression (different address spaces)
    net/ipv4/inetpeer.c:149:20: error: incompatible types in comparison
    expression (different address spaces)
    net/ipv4/inetpeer.c:595:10: error: incompatible types in comparison
    expression (different address spaces)
    Signed-off-by: NEric Dumazet <edumazet@google.com>
    Cc: Steffen Klassert <steffen.klassert@secunet.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    da557374
inetpeer.c 17.8 KB