]> git.baikalelectronics.ru Git - kernel.git/commitdiff
skmsg: Make __sk_psock_purge_ingress_msg() static
authorCong Wang <cong.wang@bytedance.com>
Tue, 23 Feb 2021 18:49:32 +0000 (10:49 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Feb 2021 20:28:04 +0000 (12:28 -0800)
It is only used within skmsg.c so can become static.

Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/bpf/20210223184934.6054-8-xiyou.wangcong@gmail.com
include/linux/skmsg.h
net/core/skmsg.c

index d9f6ec4a9cf2db22f5c52ecc8f81206145e754f2..676d48e08159f777921a77173555e52d0c9dfd65 100644 (file)
@@ -340,8 +340,6 @@ static inline void sk_psock_free_link(struct sk_psock_link *link)
 
 struct sk_psock_link *sk_psock_link_pop(struct sk_psock *psock);
 
-void __sk_psock_purge_ingress_msg(struct sk_psock *psock);
-
 static inline void sk_psock_cork_free(struct sk_psock *psock)
 {
        if (psock->cork) {
index 35f9caa3b125bc98ea115668a7b888fcabb7ed1a..46e29d2c0c48fdb98768b5ac70f25d43c512ef88 100644 (file)
@@ -619,7 +619,7 @@ struct sk_psock_link *sk_psock_link_pop(struct sk_psock *psock)
        return link;
 }
 
-void __sk_psock_purge_ingress_msg(struct sk_psock *psock)
+static void __sk_psock_purge_ingress_msg(struct sk_psock *psock)
 {
        struct sk_msg *msg, *tmp;