• Eric Dumazet's avatar
    fou: remove sparse errors · 8d65cd8d
    Eric Dumazet authored
    We need to add __rcu qualifier to avoid these errors:
    
    net/ipv4/fou.c:250:18: warning: incorrect type in assignment (different address spaces)
    net/ipv4/fou.c:250:18:    expected struct net_offload const **offloads
    net/ipv4/fou.c:250:18:    got struct net_offload const [noderef] __rcu **
    net/ipv4/fou.c:251:15: error: incompatible types in comparison expression (different address spaces):
    net/ipv4/fou.c:251:15:    struct net_offload const [noderef] __rcu *
    net/ipv4/fou.c:251:15:    struct net_offload const *
    net/ipv4/fou.c:272:18: warning: incorrect type in assignment (different address spaces)
    net/ipv4/fou.c:272:18:    expected struct net_offload const **offloads
    net/ipv4/fou.c:272:18:    got struct net_offload const [noderef] __rcu **
    net/ipv4/fou.c:273:15: error: incompatible types in comparison expression (different address spaces):
    net/ipv4/fou.c:273:15:    struct net_offload const [noderef] __rcu *
    net/ipv4/fou.c:273:15:    struct net_offload const *
    net/ipv4/fou.c:442:18: wa...
    8d65cd8d
udp_offload.c 18.5 KB