mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
mptcp: make userspace_pm_append_new_local_addr static
commitaa5887dca2upstream. mptcp_userspace_pm_append_new_local_addr() has always exclusively been used in pm_userspace.c since its introduction in commit4638de5aef("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2f414a56b3
commit
42a841a84f
@@ -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,
|
static int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk,
|
||||||
struct mptcp_pm_addr_entry *entry)
|
struct mptcp_pm_addr_entry *entry)
|
||||||
{
|
{
|
||||||
DECLARE_BITMAP(id_bitmap, MPTCP_PM_MAX_ADDR_ID + 1);
|
DECLARE_BITMAP(id_bitmap, MPTCP_PM_MAX_ADDR_ID + 1);
|
||||||
struct mptcp_pm_addr_entry *match = NULL;
|
struct mptcp_pm_addr_entry *match = NULL;
|
||||||
|
|||||||
@@ -834,8 +834,6 @@ void mptcp_pm_remove_addrs(struct mptcp_sock *msk, struct list_head *rm_list);
|
|||||||
void mptcp_pm_remove_addrs_and_subflows(struct mptcp_sock *msk,
|
void mptcp_pm_remove_addrs_and_subflows(struct mptcp_sock *msk,
|
||||||
struct list_head *rm_list);
|
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);
|
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_announce(struct sk_buff *skb, struct genl_info *info);
|
||||||
int mptcp_nl_cmd_remove(struct sk_buff *skb, struct genl_info *info);
|
int mptcp_nl_cmd_remove(struct sk_buff *skb, struct genl_info *info);
|
||||||
|
|||||||
Reference in New Issue
Block a user