summaryrefslogtreecommitdiff
path: root/include/linux/skmsg.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2024-02-02 03:11:07 -0800
committerAndrew Morton <akpm@linux-foundation.org>2024-02-02 03:11:07 -0800
commit349bd87f6091ac68b8eab368ce30bcaf6d45c50e (patch)
treef3b65442c181a4c2d52a070fcfa22e70ef9b5711 /include/linux/skmsg.h
parent96204e15310c218fd9355bdcacd02fed1d18070e (diff)
parent41bccc98fb7931d63d03f326a746ac4d429c1dd3 (diff)
Merge branch 'master' into mm-hotfixes-stable
Diffstat (limited to 'include/linux/skmsg.h')
-rw-r--r--include/linux/skmsg.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/skmsg.h b/include/linux/skmsg.h
index 888a4b217829..e65ec3fd2799 100644
--- a/include/linux/skmsg.h
+++ b/include/linux/skmsg.h
@@ -505,12 +505,6 @@ static inline bool sk_psock_strp_enabled(struct sk_psock *psock)
return !!psock->saved_data_ready;
}
-static inline bool sk_is_udp(const struct sock *sk)
-{
- return sk->sk_type == SOCK_DGRAM &&
- sk->sk_protocol == IPPROTO_UDP;
-}
-
#if IS_ENABLED(CONFIG_NET_SOCK_MSG)
#define BPF_F_STRPARSER (1UL << 1)