From: Cong Wang Date: Tue, 23 Feb 2021 18:49:32 +0000 (-0800) Subject: skmsg: Make __sk_psock_purge_ingress_msg() static X-Git-Tag: v5.13-rc1~94^2~619^2~22^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd81cefb1abc52bd164f4d9760cd22eadc0e4468;p=thirdparty%2Fkernel%2Flinux.git skmsg: Make __sk_psock_purge_ingress_msg() static It is only used within skmsg.c so can become static. Signed-off-by: Cong Wang Signed-off-by: Alexei Starovoitov Acked-by: Jakub Sitnicki Link: https://lore.kernel.org/bpf/20210223184934.6054-8-xiyou.wangcong@gmail.com --- diff --git a/include/linux/skmsg.h b/include/linux/skmsg.h index d9f6ec4a9cf2d..676d48e08159f 100644 --- a/include/linux/skmsg.h +++ b/include/linux/skmsg.h @@ -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) { diff --git a/net/core/skmsg.c b/net/core/skmsg.c index 35f9caa3b125b..46e29d2c0c48f 100644 --- a/net/core/skmsg.c +++ b/net/core/skmsg.c @@ -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;