mptcp: make userspace_pm_append_new_local_addr static
authorGeliang Tang <geliang.tang@suse.com>
Fri, 14 Apr 2023 15:47:06 +0000 (17:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2023 07:25:33 +0000 (08:25 +0100)
mptcp_userspace_pm_append_new_local_addr() has always exclusively been
used in pm_userspace.c since its introduction in
commit 4638de5aefe5 ("mptcp: handle local addrs announced by userspace PMs").

So make it static.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/pm_userspace.c
net/mptcp/protocol.h

index a02d3cbf2a1b604a2ab65f4f11e98435023a18f2..27a275805c06c05d97219a00d2517beb121f150e 100644 (file)
@@ -25,8 +25,8 @@ void mptcp_free_local_addr_list(struct mptcp_sock *msk)
        }
 }
 
-int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk,
-                                            struct mptcp_pm_addr_entry *entry)
+static int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk,
+                                                   struct mptcp_pm_addr_entry *entry)
 {
        DECLARE_BITMAP(id_bitmap, MPTCP_PM_MAX_ADDR_ID + 1);
        struct mptcp_pm_addr_entry *match = NULL;
index 21eda9cd0c5281ee798c02c6b09e5c98174cd8e8..d91b852c2405d04dfcdc3e66f435b6e30de6e4f1 100644 (file)
@@ -830,8 +830,6 @@ int mptcp_pm_remove_subflow(struct mptcp_sock *msk, const struct mptcp_rm_list *
 void mptcp_pm_remove_addrs_and_subflows(struct mptcp_sock *msk,
                                        struct list_head *rm_list);
 
-int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk,
-                                            struct mptcp_pm_addr_entry *entry);
 void mptcp_free_local_addr_list(struct mptcp_sock *msk);
 int mptcp_nl_cmd_announce(struct sk_buff *skb, struct genl_info *info);
 int mptcp_nl_cmd_remove(struct sk_buff *skb, struct genl_info *info);