mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
net: remove unused sock_enable_timestamps
This function was introduced in commit783da70e83("net: add sock_enable_timestamps"), with one caller in rxrpc. That only caller was removed in commit7903d4438b("rxrpc: Don't use received skbuff timestamps"). Signed-off-by: Willem de Bruijn <willemb@google.com> Reviewed-by: Jason Xing <kerneljasonxing@gmail.com> Link: https://patch.msgid.link/20250609153254.3504909-1-willemdebruijn.kernel@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
1f07789152
commit
561939ed44
|
|
@ -2982,7 +2982,6 @@ void sock_set_timestamp(struct sock *sk, int optname, bool valbool);
|
|||
int sock_set_timestamping(struct sock *sk, int optname,
|
||||
struct so_timestamping timestamping);
|
||||
|
||||
void sock_enable_timestamps(struct sock *sk);
|
||||
#if defined(CONFIG_CGROUP_BPF)
|
||||
void bpf_skops_tx_timestamping(struct sock *sk, struct sk_buff *skb, int op);
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -837,14 +837,6 @@ static void __sock_set_timestamps(struct sock *sk, bool val, bool new, bool ns)
|
|||
}
|
||||
}
|
||||
|
||||
void sock_enable_timestamps(struct sock *sk)
|
||||
{
|
||||
lock_sock(sk);
|
||||
__sock_set_timestamps(sk, true, false, true);
|
||||
release_sock(sk);
|
||||
}
|
||||
EXPORT_SYMBOL(sock_enable_timestamps);
|
||||
|
||||
void sock_set_timestamp(struct sock *sk, int optname, bool valbool)
|
||||
{
|
||||
switch (optname) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user