• E
    udp: move gro declarations to net/udp.h · 6db69328
    Eric Dumazet 提交于
    This removes following warnings :
      CC      net/ipv4/udp_offload.o
    net/ipv4/udp_offload.c:504:17: warning: no previous prototype for 'udp4_gro_receive' [-Wmissing-prototypes]
      504 | struct sk_buff *udp4_gro_receive(struct list_head *head, struct sk_buff *skb)
          |                 ^~~~~~~~~~~~~~~~
    net/ipv4/udp_offload.c:584:29: warning: no previous prototype for 'udp4_gro_complete' [-Wmissing-prototypes]
      584 | INDIRECT_CALLABLE_SCOPE int udp4_gro_complete(struct sk_buff *skb, int nhoff)
          |                             ^~~~~~~~~~~~~~~~~
    
      CHECK   net/ipv6/udp_offload.c
    net/ipv6/udp_offload.c:115:16: warning: symbol 'udp6_gro_receive' was not declared. Should it be static?
    net/ipv6/udp_offload.c:148:29: warning: symbol 'udp6_gro_complete' was not declared. Should it be static?
      CC      net/ipv6/udp_offload.o
    net/ipv6/udp_offload.c:115:17: warning: no previous prototype for 'udp6_gro_receive' [-Wmissing-prototypes]
      115 | struct sk_buff *udp6_gro_receive(struct list_head *head, struct sk_buff *skb)
          |                 ^~~~~~~~~~~~~~~~
    net/ipv6/udp_offload.c:148:29: warning: no previous prototype for 'udp6_gro_complete' [-Wmissing-prototypes]
      148 | INDIRECT_CALLABLE_SCOPE int udp6_gro_complete(struct sk_buff *skb, int nhoff)
          |                             ^~~~~~~~~~~~~~~~~
    Signed-off-by: NEric Dumazet <edumazet@google.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    6db69328
af_inet.c 51.6 KB