]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: remove unused sock_enable_timestamps
authorWillem de Bruijn <willemb@google.com>
Mon, 9 Jun 2025 15:32:35 +0000 (11:32 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Jun 2025 21:43:40 +0000 (14:43 -0700)
This function was introduced in commit 783da70e8396 ("net: add
sock_enable_timestamps"), with one caller in rxrpc.

That only caller was removed in commit 7903d4438b3f ("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>
include/net/sock.h
net/core/sock.c

index 92e7c1aae3ccafe3a806dcee07ec77a469c0f43d..85e17da5c9db157d9b895f7fa5538ff75e4745f9 100644 (file)
@@ -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
index 3b409bc8ef6d81828cef63bc828db932abb1cfab..502042a0d3b5f80529ca8be50e9d9d6585091054 100644 (file)
@@ -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) {