Skip to content
  • Eric Dumazet's avatar
    udp: fix two sparse errors · 7c0cadc6
    Eric Dumazet authored
    commit ba418fa3
    
     ("soreuseport: UDP/IPv4 implementation")
    added following sparse errors :
    
    net/ipv4/udp.c:433:60: warning: cast from restricted __be16
    net/ipv4/udp.c:433:60: warning: incorrect type in argument 1 (different base types)
    net/ipv4/udp.c:433:60:    expected unsigned short [unsigned] [usertype] val
    net/ipv4/udp.c:433:60:    got restricted __be16 [usertype] sport
    net/ipv4/udp.c:433:60: warning: cast from restricted __be16
    net/ipv4/udp.c:433:60: warning: cast from restricted __be16
    net/ipv4/udp.c:514:60: warning: cast from restricted __be16
    net/ipv4/udp.c:514:60: warning: incorrect type in argument 1 (different base types)
    net/ipv4/udp.c:514:60:    expected unsigned short [unsigned] [usertype] val
    net/ipv4/udp.c:514:60:    got restricted __be16 [usertype] sport
    net/ipv4/udp.c:514:60: warning: cast from restricted __be16
    net/ipv4/udp.c:514:60: warning: cast from restricted __be16
    
    Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    7c0cadc6