diff options
author | Paolo Abeni <pabeni@redhat.com> | 2022-02-15 18:11:28 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-02-16 20:52:05 -0800 |
commit | 90d930882139f166ed2551205d6f6d8c50b656fb (patch) | |
tree | 2775b094ad9746d1982639ca50d3b9eb8910f029 /net/mptcp/pm.c | |
parent | af7939f390de17bde4a10a3bf0e337627fb42591 (diff) | |
download | lwn-90d930882139f166ed2551205d6f6d8c50b656fb.tar.gz lwn-90d930882139f166ed2551205d6f6d8c50b656fb.zip |
mptcp: constify a bunch of of helpers
A few pm-related helpers don't touch arguments which lacking
the const modifier, let's constify them.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp/pm.c')
-rw-r--r-- | net/mptcp/pm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mptcp/pm.c b/net/mptcp/pm.c index ef6e4adeb0e5..8755b81896de 100644 --- a/net/mptcp/pm.c +++ b/net/mptcp/pm.c @@ -219,7 +219,7 @@ void mptcp_pm_add_addr_received(struct mptcp_sock *msk, } void mptcp_pm_add_addr_echoed(struct mptcp_sock *msk, - struct mptcp_addr_info *addr) + const struct mptcp_addr_info *addr) { struct mptcp_pm_data *pm = &msk->pm; @@ -275,7 +275,7 @@ void mptcp_pm_mp_fail_received(struct sock *sk, u64 fail_seq) /* path manager helpers */ -bool mptcp_pm_add_addr_signal(struct mptcp_sock *msk, struct sk_buff *skb, +bool mptcp_pm_add_addr_signal(struct mptcp_sock *msk, const struct sk_buff *skb, unsigned int opt_size, unsigned int remaining, struct mptcp_addr_info *addr, bool *echo, bool *drop_other_suboptions) |