Skip to content

Commit 68223f9

Browse files
Yue Haibingkuba-moo
authored andcommitted
tcp: Remove unused function declarations
commit 8a59f9d ("sock: Introduce sk->sk_prot->psock_update_sk_prot()") left behind tcp_bpf_get_proto() declaration. And tcp_v4_tw_remember_stamp() function is remove in ccb7c41 ("timewait_sock: Create and use getpeer op."). Since commit 6869897 ("tcp: simplify tcp_mark_skb_lost") tcp_skb_mark_lost_uncond_verify() declaration is not used anymore. Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Eric Dumazet <edumazet@google.com> Link: https://lore.kernel.org/r/20230729122644.10648-1-yuehaibing@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 2628d40 commit 68223f9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

include/net/tcp.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ int tcp_v4_early_demux(struct sk_buff *skb);
323323
int tcp_v4_rcv(struct sk_buff *skb);
324324

325325
void tcp_remove_empty_skb(struct sock *sk);
326-
int tcp_v4_tw_remember_stamp(struct inet_timewait_sock *tw);
327326
int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
328327
int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size);
329328
int tcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, int *copied,
@@ -622,7 +621,6 @@ void tcp_skb_collapse_tstamp(struct sk_buff *skb,
622621
void tcp_rearm_rto(struct sock *sk);
623622
void tcp_synack_rtt_meas(struct sock *sk, struct request_sock *req);
624623
void tcp_reset(struct sock *sk, struct sk_buff *skb);
625-
void tcp_skb_mark_lost_uncond_verify(struct tcp_sock *tp, struct sk_buff *skb);
626624
void tcp_fin(struct sock *sk);
627625
void tcp_check_space(struct sock *sk);
628626
void tcp_sack_compress_send_ack(struct sock *sk);
@@ -2360,7 +2358,6 @@ struct sk_msg;
23602358
struct sk_psock;
23612359

23622360
#ifdef CONFIG_BPF_SYSCALL
2363-
struct proto *tcp_bpf_get_proto(struct sock *sk, struct sk_psock *psock);
23642361
int tcp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);
23652362
void tcp_bpf_clone(const struct sock *sk, struct sock *newsk);
23662363
#endif /* CONFIG_BPF_SYSCALL */

0 commit comments

Comments
 (0)