mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 05:11:46 +00:00
skmsg: Make __sk_psock_purge_ingress_msg() static
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
This commit is contained in:
parent
4675e234b9
commit
cd81cefb1a
2 changed files with 1 additions and 3 deletions
|
@ -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);
|
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)
|
static inline void sk_psock_cork_free(struct sk_psock *psock)
|
||||||
{
|
{
|
||||||
if (psock->cork) {
|
if (psock->cork) {
|
||||||
|
|
|
@ -619,7 +619,7 @@ struct sk_psock_link *sk_psock_link_pop(struct sk_psock *psock)
|
||||||
return link;
|
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;
|
struct sk_msg *msg, *tmp;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue