Skip to content

Commit

Permalink
udp/udplite: Remove unused function declarations udp{,lite}_get_port()
Browse files Browse the repository at this point in the history
Commit 6ba5a3c ("[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>
  • Loading branch information
Yue Haibing authored and David S. Miller committed Aug 7, 2023
1 parent a6ab5c2 commit cc97777
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions include/net/udp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions include/net/udplite.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit cc97777

Please sign in to comment.