From nobody Mon Feb 9 18:20:06 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D79DB341052; Wed, 4 Feb 2026 16:57:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770224270; cv=none; b=Wr27De0FVe7+Mq3IryjkuUVurUKD45kmXbbQ1O/NNlVejSekX+FR65uUSkHZcU1Q2M9Zf06u+06UEkX0uFS3tuQT3v8GsCSItdZKe+ZudD5iaw8A9hH1h12JRr0d3WqLg7484Ww9i7nApBjWFsSwAUDuhVkzQ6eGjQXWwr7YI6A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770224270; c=relaxed/simple; bh=k86znqb/C5wurGTotFhvFsMFzCbZUfP3RFI0jLbub1Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=l89IF64Li3bgSeohOPK0mIQSP0uAaVD6vHqmeBeIWyRXw1z7e0ypJw54oAaua7KNZhhRlvSgbIlOKJPEtVVzNAn245f4ltcKM0a4iw7pN7teq6EBRsIh7RrEC9AgAN/urrx1/CmN87OGx0chlbvOOBu0rnNUmIbd1w/9e5uv+K0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ITKusBxr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ITKusBxr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DC07C116C6; Wed, 4 Feb 2026 16:57:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770224270; bh=k86znqb/C5wurGTotFhvFsMFzCbZUfP3RFI0jLbub1Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ITKusBxrg7bQ7WrFjaqePKrJ21maayO555bUcYIBxaFzJcMqUqH7Rhxna/30O6Yde 07CGxn4TKFbJXTqG6peHAIprMBjl1DxYA9c5rZxzmlHX8oypAHpObBYkxO0Zr+H7NN t4o+Kfumon2FaxTxFfOfIdtF5UdApSt54CgAEypsHN9uUdLr+R74sn+20qH3J7Wx1z cfRRlw/7SdvETQAIg4Xa4nTyp3LdVYUHkmnLaWoORZtUilLIH0jheU25aEdIdono/E A9lImyFULL2Bl5SJHO6xRGXh1ZaZxv+lBoC1mMVgyBva6/F3JAflA0ww3Ug/+pk7nt khbgufWITUpnA== From: "Matthieu Baerts (NGI0)" Date: Wed, 04 Feb 2026 17:57:26 +0100 Subject: [PATCH net 2/4] mptcp: pm: in-kernel: clarify mptcp_pm_remove_anno_addr() Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260204-net-mptcp-misc-fixes-6-19-rc8-v1-2-cb559fb6b50a@kernel.org> References: <20260204-net-mptcp-misc-fixes-6-19-rc8-v1-0-cb559fb6b50a@kernel.org> In-Reply-To: <20260204-net-mptcp-misc-fixes-6-19-rc8-v1-0-cb559fb6b50a@kernel.org> To: Mat Martineau , Geliang Tang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan Cc: netdev@vger.kernel.org, mptcp@lists.linux.dev, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, "Matthieu Baerts (NGI0)" X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1636; i=matttbe@kernel.org; h=from:subject:message-id; bh=k86znqb/C5wurGTotFhvFsMFzCbZUfP3RFI0jLbub1Y=; b=owGbwMvMwCVWo/Th0Gd3rumMp9WSGDKbq1pV1SZonbyTf3mxem7dfp9WjaLp7Vlvn/0rO11lP HlJgbNQRykLgxgXg6yYIot0W2T+zOdVvCVefhYwc1iZQIYwcHEKwETq2Rn++yWk1KrKyv8/1Lk2 ++rjwNT9NsLCH7L1pm6dsjYnprr+LSPDEZfwWXE717V1HZ9wlinCsqg4ZoVpiMFKEd6qoGMnpfp 5AQ== X-Developer-Key: i=matttbe@kernel.org; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 The variable 'ret' was used, but it was not cleared what it was, and probably led to an issue [1]. Rename it to 'announced' to avoid confusions. While at it, remove the returned value of the helper: it is only used in one place, and the returned value is not used. Link: https://github.com/multipath-tcp/mptcp_net-next/issues/606 [1] Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- net/mptcp/pm_kernel.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/net/mptcp/pm_kernel.c b/net/mptcp/pm_kernel.c index 4972c19fc73e..b5316a6c7d1b 100644 --- a/net/mptcp/pm_kernel.c +++ b/net/mptcp/pm_kernel.c @@ -1044,24 +1044,23 @@ int mptcp_pm_nl_add_addr_doit(struct sk_buff *skb, = struct genl_info *info) return ret; } =20 -static bool mptcp_pm_remove_anno_addr(struct mptcp_sock *msk, +static void mptcp_pm_remove_anno_addr(struct mptcp_sock *msk, const struct mptcp_addr_info *addr, bool force) { struct mptcp_rm_list list =3D { .nr =3D 0 }; - bool ret; + bool announced; =20 list.ids[list.nr++] =3D mptcp_endp_get_local_id(msk, addr); =20 - ret =3D mptcp_remove_anno_list_by_saddr(msk, addr); - if (ret || force) { + announced =3D mptcp_remove_anno_list_by_saddr(msk, addr); + if (announced || force) { spin_lock_bh(&msk->pm.lock); - if (ret) + if (announced) msk->pm.add_addr_signaled--; mptcp_pm_remove_addr(msk, &list); spin_unlock_bh(&msk->pm.lock); } - return ret; } =20 static void __mark_subflow_endp_available(struct mptcp_sock *msk, u8 id) --=20 2.51.0