Article View: linux.kernel.netdev
Article #26572Re: [PATCH net-next RFC 5/5] vsock/hyperv: constify hvs_transport
From: Hamza Mahfooz
Date: Thu, 03 Dec 2026 20:14
Date: Thu, 03 Dec 2026 20:14
32 lines
9505 bytes
9505 bytes
On Thu, Dec 03, 2026 at 05:32:21PM +0100, Michal Luczaj wrote:
> Struct is never modified. Add `const` qualifier, let it be moved to
> read-only section.
>
> No functional change intended, compile tested only.
>
> Signed-off-by: Michal Luczaj <mhal@rbox.co>
Reviewed-by: Hamza Mahfooz <hamza@kernel.org>
> ---
> net/vmw_vsock/hyperv_transport.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/vmw_vsock/hyperv_transport.c b/net/vmw_vsock/hyperv_transport.c
> index 551eabe69014..274b707e0da3 100644
> --- a/net/vmw_vsock/hyperv_transport.c
> +++ b/net/vmw_vsock/hyperv_transport.c
> @@ -862,7 +862,7 @@ int hvs_notify_set_rcvlowat(struct vsock_sock *vsk, int val)
> return -EOPNOTSUPP;
> }
>
> -static struct vsock_transport hvs_transport = {
> +static const struct vsock_transport hvs_transport = {
> .module = THIS_MODULE,
>
> .get_local_cid = hvs_get_local_cid,
>
> --
> 2.56.1
>
Technical Details
Message-ID:
<axHNmjE363iBtc/2@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376847-linux-kernel-netdev=dewy.ruReferences:
<20261203-vsock-constify-transports-v1-0-ed0c08ca9e0c@rbox.co> <20261203-vsock-constify-transports-v1-5-ed0c08ca9e0c@rbox.co>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376847-linux-kernel-netdev=dewy.ru From: hamza@kernel.org (Hamza Mahfooz) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next RFC 5/5] vsock/hyperv: constify hvs_transport Date: Thu, 3 Dec 2026 15:14:18 -0500 Organization: Usenet Network Message-ID: <axHNmjE363iBtc/2@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20261203-vsock-constify-transports-v1-0-ed0c08ca9e0c@rbox.co> <20261203-vsock-constify-transports-v1-5-ed0c08ca9e0c@rbox.co> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2585415"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:2t+A0E55xaAgde3oK7gZZv4YEBg= sha256:5BO2dB6aUAfZ8rauDgnLkfpY91EwveOaKcBoG4MqQUI= sha1:Dwvg93KKAHGQi8MPv4eYPDN3Ero= sha256:AvRPc50jHr+4AIhNfidzJvmS6SLefYPUhjtF4YXfnz4= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id EAB50117A16; Thu, 3 Dec 2026 23:14:48 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.64 X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v5TyXvFGcU14; Thu, 3 Dec 2026 23:14:46 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376847-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 1AB121179BD; Thu, 3 Dec 2026 23:14:35 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 7302327EBB; Thu, 3 Dec 2026 20:14:24 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796328863; b=MjBMm5d9m5T26awndBbzJMJaAYYVS1Zo0NqKFq0in/gDQIOQhR6hqSm7wQ+fH95pvvzd sDADO/YFePZRqXrDcPms6liTnJn+JP3hSRCREc5kMqWtIodLsr2/KVhRFfV4+GTPePZDm 8LjYZB719BxnSUGWyhVolE2d7FsIJSABd31mgPtkEFb6nENG6tRPF6cy4PDa4MIz5wauO DTIB0IHwZc6z1geu22gO4p4Mr6Y/Qld7qrxhPDOeaEyZap0/feDc9bAolzRA9nC8akVN8 X29PEg10ajDl1vtbwdAV0sxOw5JW1XuxNDede/kZ4zGeuRQHOhrWt/M6rFUqPLPzc4Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796328863; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=xpbMEqqMxBx9KfF69NkN33PzIb4qN5JUWdbEQbZDH0w=; b=mrzrBxdPkdnmzOc5HWChYE0gjVmnPkgLodkdrYBf/eRqBHpnfpxhqW1c7Ob2R4r2bDQa alPdzeTuNuGOnJZa56/dQNrHAyxvF4PxUBz8MjguhU//GyBHBlM63fa1s3zUdbMDlMbk3 gYeKX8EwzX/qc9z7ztL22jZ4Oe6dOFveDPC3j0cHG6GYrj7hM7UzUf5oTH+OHbpEBJOhK bDnz3IF5nxVg/Ri579ygLzl+3rC4LPPVysMIMid1KwoIQC1MWi9LC3rg/n2PkfuX918Sn ZUy7cV0XTCkdNjmTt0cacJoA0u33sMBA61x7KGL1p1KO331nZSZmBh7dII//egNgGiw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=O9CmIoLH; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5DBF606A687; Thu, 3 Dec 2026 20:14:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=O9CmIoLH X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796328862; b=Y/iYmDTrSxEA7btqxct/AOsRivxaG9BNgRtWzQIx0a+s9bl50+TJr/Nzk4eH9CvLpOd0 1kI5XjuqcvTqdrbLoP3cDdRuqZ7Tjw4m7r/e0TAUsOcIh/MrREvsSCdf8ohkMePMD67wi 6kmwMfLPXnySN4jNUsxBx8LrJ8QYOyeuqobbs9QOXJ6E7skP7S42uX27KiWrZb7Pzut7M 8WGGqjJbAtWcoKffJ8aANc/8FERc+wXDojHWAeCYPt5ZKbb6K6q0krSwiCphdNdRrqY2S RuyppgbiB4NINM8t4GSsnUNSJnQIeS9z1R4hJltb+FE0Zi7ULbbLxC3eWVeP4oEdgDw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796328862; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=xpbMEqqMxBx9KfF69NkN33PzIb4qN5JUWdbEQbZDH0w=; b=rT+TBBJcwnLJ9/TDCyywDe8bvxwRjtJZfFo4yFh4vFzlqPGYgvrlBiDREWDDTNjbppmg 72CEVg7ZjHyFmRGCnFEAzeEq/5MWKmTFtBJ+P9lAYXQb/PIu/rgB0jAGVA7tcP09/JYI4 ExwhEciGHTe4ykLRTdgqcUULJd3ABYmkrw15OUOnRqMVG21sYMgGmPIFqraUhJOnKltPr Tp2vgwu5xNQQPNXXebzhCse8jZ+oVQTjpTQp/DHEQIylxr0YwbbUvxa95E82Mc62AMNAQ pQCtcxmoWwpX9yBsLdsCSMuAqvGxgs4cP/Al736areRw0tz4Hfcqrdwfaj0XlzJTiAg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=O9CmIoLH; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0EDB2606A335; Thu, 3 Dec 2026 20:14:22 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F5381F0092B; Thu, 3 Dec 2026 20:14:21 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796328861; bh=xpbMEqqMxBx9KfF69NkN33PzIb4qN5JUWdbEQbZDH0w=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=O9CmIoLHB3QKnWsy7qe2YsOApy2FJejYN1SRm0u74z/YA5CPX0W9DcqNVROUDgYA7 PZKMQZDrxltmHES8BjE7u3GX2wcMmKHiKNzg/D5hWsBfvndgboUD87zZPWO/ZAbZaT CjAC4vgoDwWMz7TzaNo11nCmKbFCjOQBvNTtPEjW1CUYpGHlbHzYQ39+uMLWBfBVnO X9O6GtKBvgzD6+t6ITyq9PqqlaK0AgxvmdyBIMs///kVj9YUgTDFlLInoDXz8SSaQB pON620mnxWX4yWJhdiTqVsAzV1c5sG45M4ouWLvMpfZIxN0o5RbjmxIi7EfPWlhQ3g JuQYgU+untlOQ== X-Cc: Stefan Hajnoczi <stefanha@redhat.com>, Stefano Garzarella <sgarzare@redhat.com>, Bobby Eshleman <bobbyeshleman@meta.com>, "Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowangio@gmail.com>, Eugenio PΓ©rez <eperezma@redhat.com>, Xuan Zhuo <xuanzhuo@linux.alibaba.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Willem de Bruijn <willemb@google.com>, Simon Horman <horms@kernel.org>, Bryan Tan <bryan-bt.tan@broadcom.com>, Vishnu Dasa <vishnu.dasa@broadcom.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Haiyang Zhang <haiyangz@microsoft.com>, Wei Liu <wei.liu@kernel.org>, Dexuan Cui <decui@microsoft.com>, virtualization@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261203-vsock-constify-transports-v1-5-ed0c08ca9e0c@rbox.co>