udp/udplite: Remove unused function declarations udp{,lite}_get_port()
authorYue Haibing <yuehaibing@huawei.com>
Sat, 5 Aug 2023 11:00:09 +0000 (19:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2023 07:53:55 +0000 (08:53 +0100)
Commit 6ba5a3c52da0 ("[UDP]: Make full use of proto.h.udp_hash innovation.")
removed these implementations but leave declarations.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/udp.h
include/net/udplite.h

index 5a8421cd9083658f2460de5a225700f242f0dcdb..488a6d2babccf26edfbaecc525f25e03d86b7d62 100644 (file)
@@ -273,9 +273,6 @@ static inline struct sk_buff *skb_recv_udp(struct sock *sk, unsigned int flags,
 
 int udp_v4_early_demux(struct sk_buff *skb);
 bool udp_sk_rx_dst_set(struct sock *sk, struct dst_entry *dst);
-int udp_get_port(struct sock *sk, unsigned short snum,
-                int (*saddr_cmp)(const struct sock *,
-                                 const struct sock *));
 int udp_err(struct sk_buff *, u32);
 int udp_abort(struct sock *sk, int err);
 int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len);
index 299c14ce2bb949029624710798810919cccb7934..bd33ff2b8f426de24640cb7e821a28873a813260 100644 (file)
@@ -81,6 +81,4 @@ static inline __wsum udplite_csum(struct sk_buff *skb)
 }
 
 void udplite4_register(void);
-int udplite_get_port(struct sock *sk, unsigned short snum,
-                    int (*scmp)(const struct sock *, const struct sock *));
 #endif /* _UDPLITE_H */