From nobody Sun Feb 8 23:42:10 2026 Delivered-To: wpasupplicant.patchew@gmail.com Received: by 2002:a02:9f92:0:0:0:0:0 with SMTP id a18csp3280121jam; Thu, 10 Feb 2022 10:49:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzP+exIgnqhJRapAL3R1IIHGAWwYhQiGEUu23NvZEL6zi97o6LJHp+cKOC3meamwQUXaKOb X-Received: by 2002:a17:90b:4a8e:: with SMTP id lp14mr4252877pjb.75.1644518974625; Thu, 10 Feb 2022 10:49:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644518974; cv=none; d=google.com; s=arc-20160816; b=QnY+S57OBOQkEBujNIUdqC3VxImgcNWxbvMxoZs2aZLOHT1CGhddRv9pwRnpCGB2n4 ZK/vrJ0IzZVaKvYmfUu7Q19Mk+bmoWTtDc2Dg8KnqCNVR38ueHfJmYaWTrCAfejBucO7 m/7iO+gRNlBiFV+q4TueIdgE/KaCCfN2dSvq1hjYhbCkYK/YLRY8i4jtpE8ooqR309ww 4mxn3gYKmaddYbkyflAXGDxg9pkifLb5scL+gRdj+3GICeNYbEKFkKmbCw1lr8admmGW 08B3beFXMVZtSgAkXmoo9pPjKVMBkFQz06VjeZrsVr8uLWs+EnKbjlWvsIeh9er3caSF AC0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=3UBJflAZ80wm6ItZgAyOxnQGEwFP1voeDFnm8/KOqyg=; b=lwNn1/+KR75ryrEdXo5rfNLihnyvbOWcZM9QllraLpm3qS/fove+ftuOjVGzVTXrmU xljtcMwtSbCRgVwl+BQ0RmUTz102cWzxwka44gsl/tHqciFg1U60qko0sN3B60DLjHJR ohonuHdEAOCUjpVgOK6TSU0BV1u3dO6plQndkTde7rrQSYu6Vwrxs0l0kG7WYtdStyri 84iPfMpUlLlu5b8P3k7kqz0mQyxV/1bqF3OOhrnUdhmat0w/wR0JXaoKSesJY0dN34Je Hxenl8l3KIY7JLtnWkP/QBfFgXJcHDZW8Pyxao/W0KAsSowUhw5++cBsZnGbDN/ogbQB gCQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jUThGW0y; spf=pass (google.com: domain of mptcp+bounces-3650-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 147.75.69.165 as permitted sender) smtp.mailfrom="mptcp+bounces-3650-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sjc.edge.kernel.org (sjc.edge.kernel.org. [147.75.69.165]) by mx.google.com with ESMTPS id kb17si2298150pjb.76.2022.02.10.10.49.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Feb 2022 10:49:34 -0800 (PST) Received-SPF: pass (google.com: domain of mptcp+bounces-3650-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 147.75.69.165 as permitted sender) client-ip=147.75.69.165; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jUThGW0y; spf=pass (google.com: domain of mptcp+bounces-3650-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 147.75.69.165 as permitted sender) smtp.mailfrom="mptcp+bounces-3650-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sjc.edge.kernel.org (Postfix) with ESMTPS id 4A77E3E1089 for ; Thu, 10 Feb 2022 18:49:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB4FD2C9C; Thu, 10 Feb 2022 18:49:32 +0000 (UTC) X-Original-To: mptcp@lists.linux.dev Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 3006F2C9D for ; Thu, 10 Feb 2022 18:49:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644518970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3UBJflAZ80wm6ItZgAyOxnQGEwFP1voeDFnm8/KOqyg=; b=jUThGW0y/22X4hZ137ieN2lBc4hlsWgn2/Lhf3+JAH5g4ZpvAXF2ZYCXDN9IRkLrBLTjKD zQzS7Zz7XlkkPUrue2ouaR6IO1pnjsCNzvzRVKP0MPgjbCLf+QPGyNLxi7Zdl2eU6Ux9na FFq9/d2o2RMrt17qu70KDXyaMBDmzmI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-390-ecHu_qElN5eVG4wPu0twwg-1; Thu, 10 Feb 2022 13:49:29 -0500 X-MC-Unique: ecHu_qElN5eVG4wPu0twwg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 40D92802B7A for ; Thu, 10 Feb 2022 18:49:28 +0000 (UTC) Received: from gerbillo.redhat.com (unknown [10.39.194.220]) by smtp.corp.redhat.com (Postfix) with ESMTP id A5510106C0D2 for ; Thu, 10 Feb 2022 18:49:27 +0000 (UTC) From: Paolo Abeni To: mptcp@lists.linux.dev Subject: [PATCH v3 mptcp-next 1/3] Squash-to: "mptcp: constify a bunch of of helpers" Date: Thu, 10 Feb 2022 19:49:15 +0100 Message-Id: In-Reply-To: References: Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pabeni@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" There are a few more helpers that can be const-ified and I missed in the previous patch, just squash these change into there. Signed-off-by: Paolo Abeni --- net/mptcp/pm_netlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c index 46346f009485..56f5603c10f2 100644 --- a/net/mptcp/pm_netlink.c +++ b/net/mptcp/pm_netlink.c @@ -1289,7 +1289,7 @@ int mptcp_pm_get_flags_and_ifindex_by_id(struct net *= net, unsigned int id, } =20 static bool remove_anno_list_by_saddr(struct mptcp_sock *msk, - struct mptcp_addr_info *addr) + const struct mptcp_addr_info *addr) { struct mptcp_pm_add_entry *entry; =20 @@ -1304,7 +1304,7 @@ static bool remove_anno_list_by_saddr(struct mptcp_so= ck *msk, } =20 static bool mptcp_pm_remove_anno_addr(struct mptcp_sock *msk, - struct mptcp_addr_info *addr, + const struct mptcp_addr_info *addr, bool force) { struct mptcp_rm_list list =3D { .nr =3D 0 }; --=20 2.34.1