OSDN Git Service

ipv6: move udp declarations to net/udp.h
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 3 Feb 2021 13:51:10 +0000 (15:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 5 Feb 2021 02:37:57 +0000 (18:37 -0800)
commitf9a4719cc16fcf4f8816521e0c903a218fa072b6
treeefc61971b8ec9e3ee1973e0b38e275f5bbced6d3
parent1faba27f11c8da244e793546a1b35a9b1da8208e
ipv6: move udp declarations to net/udp.h

Fix the following compilation warning:

net/ipv6/udp.c:1031:30: warning: no previous prototype for 'udp_v6_early_demux' [-Wmissing-prototypes]
 1031 | INDIRECT_CALLABLE_SCOPE void udp_v6_early_demux(struct sk_buff *skb)
      |                              ^~~~~~~~~~~~~~~~~~
net/ipv6/udp.c:1072:29: warning: no previous prototype for 'udpv6_rcv' [-Wmissing-prototypes]
 1072 | INDIRECT_CALLABLE_SCOPE int udpv6_rcv(struct sk_buff *skb)
      |                             ^~~~~~~~~

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/udp.h
net/ipv6/ip6_input.c