🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26498

[PATCH net-next RFC 5/5] vsock/hyperv: constify hvs_transport

#26498
From: Michal Luczaj
Date: Thu, 03 Dec 2026 16:32
27 lines
9707 bytes
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>
---
 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: <20261203-vsock-constify-transports-v1-5-ed0c08ca9e0c@rbox.co>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!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-376752-linux-kernel-netdev=dewy.ru
References: <20261203-vsock-constify-transports-v1-0-ed0c08ca9e0c@rbox.co>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!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-376752-linux-kernel-netdev=dewy.ru
From: mhal@rbox.co (Michal Luczaj)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next RFC 5/5] vsock/hyperv: constify hvs_transport
Date: Thu, 03 Dec 2026 17:32:21 +0100
Organization: Usenet Network
Message-ID: <20261203-vsock-constify-transports-v1-5-ed0c08ca9e0c@rbox.co>
References: <20261203-vsock-constify-transports-v1-0-ed0c08ca9e0c@rbox.co>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2541594"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:+Csd84NJAx4QRxw+CMbn+IrAbTQ= sha256:fEerRGu0bO4MSckf/xtg1x71JfDYrDXCrT5NzcY5vBg=
	sha1:NFDzu2Qy60QjXlIxIO8fwj134Ds= sha256:yOXahw6QNuz24VvGMUCtPnxgtgvEFSPzF62qExwKV34=
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 975D51179D4; Thu,  3 Dec 2026 19:33:47 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.297
X-Spam-Status: No, score=-3.297 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001,
	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=rbox.co
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 y48HWdwehsIT;
	Thu,  3 Dec 2026 19:33:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-376752-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=rbox.co
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 78E58117990; Thu,  3 Dec 2026 19:33:34 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 467D2232CF; Thu,  3 Dec 2026 16:33:31 +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=1796315597;
	b=mhN8N5Xn+LXFEb4VRSaK9Fgb8DOtM+GNNb4+ceQ/CUrktChVxqHyeQn6Xe81EHV0zPGk
	 GNZqlklaio4oILgdDrjxE7jzVgYa5CSBmfC96EVIxl3d0o1wgX/TZZuMNj1Bt5hCqGvY0
	 Xe4YuaGzkHTxF4mi0jFcdORxnPF9Twf21jCDmR4uNnz5SmapISI+YKsAXJk8GzTmrI1et
	 qPrEy7qNQeSQdxVwfOsllNlXCEnU3PdtMkpB0rjjSzUQX+aHEj15KfOvEUZouPJr5qXKq
	 nmHuXSmSwS3uItKPKxhPN2CK8QHMnBLgRlBXFL5C/wsUNUa3LwLX6u1Mm9MBYyJTeWQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796315597;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Received:
	 Received:From:Date:Subject:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Type:Content-Transfer-Encoding:Message-Id:References:
	 In-Reply-To:To:Cc:X-Mailer;
	bh=R36hnTxpwWSF+ciW0JmcatW9T80YCpkJOTloqqH5EYQ=;
	b=JImRRFfwQRqKZ0ktrIFkL2ruIs5NedCthOinLcwQquk1UPFLnW5+Snms7n42N0SeonTu
	 DuctRCZm0/Dd3rQDUV5mT50X3QCFSENtAAdt3L/izKQsN+4bMD1CbLPygghuNgwcvPvpH
	 SRFhlnCJBNvAn7eXs1sCsALeXZ+LfYY6g8oqYl+Edo/4Sd5sudDKJgXInTg6yWTYUPygJ
	 4aSHsYyfvMkLY1L+1I1Ea09KzQGArHVbztsHNKGhQ3HqT5L84ZVcrje3JSXDm+duZ5ygu
	 vh9uwHZP9FFZmrxrbcDSJwVyyiJkRi5Dp4adD9MydJKQWLLJRmfJK2YEt7dcy24uSxA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=rbox.co header.i=@rbox.co header.a=rsa-sha256 header.s=selector1 header.b="MpWbqIM/";
	dmarc=pass header.from=rbox.co;
	spf=pass smtp.mailfrom=rbox.co;
	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 D4C2160A261B;
	Thu,  3 Dec 2026 16:33:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=rbox.co header.i=@rbox.co header.a=rsa-sha256 header.s=selector1 header.b=MpWbqIM/
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.226.149.38
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796315592;
	b=PpJJyRXdHOR360RwDKmAJDvt9CB/HNvJrSlkTDuhyjhjQ9Y4v5ekyXgeIcRVxJru9ub5
	 y8OSDmgfDT/0pSM42hiZ5VTP+S+N15/1ZXTcDHBA8oXpZ0tW4b+5MXSiBbMF7p2X/owwr
	 bv/o/3TBt9tE8EQ3ipEyBt8T2D0h5+mBNqxwNQPB6barXfkkB+NIDmIk7+YEX3TXsDXdm
	 HmvWPrNAWqySfvf1ZuyhU7F8emc+pq4z4d8n1l6NzcT3/HO2QZKz3k+JYjkEQ2nBH7s0T
	 GN4Mvf7bC9OF4IBENg1zED+AWxD59yFvO13xN+TTPiYD9vXPbBEh3qBo+BDAII0GY7w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796315592;
	h=DMARC-Filter:Received:DKIM-Signature:Received:Received:From:Date:
	 Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:
	 Message-Id:References:In-Reply-To:To:Cc:X-Mailer;
	bh=R36hnTxpwWSF+ciW0JmcatW9T80YCpkJOTloqqH5EYQ=;
	b=QnivUuhgnFJ9wXORLhKjySGIOwxghNEQnqNLHMlmrAfLAfomKOOAnW0k1Xp5jgmgB02l
	 Xf9pkVLYIzvXkjbuAX/VcdGncfAx0oI3byNvhvCpjEciHUj5GmrjTUjEvYjyFuo9TgdAn
	 HRBLv67gWzVil70lFIdr/u+VYTZL9/X+eOD+eZWWTr2nsFbGZENUjYYhenYfAE0b2nGtP
	 vKyOhTiMh0XtfM7LyaPaalUw6BMCqbTudeJLNa97CKnd+uxeNbngcaguyZDBSQZTofB0y
	 rZ18NSz/AnTJOY45Bx3/XDBASAucum8BcYKA6IbsolFdjuLU4cg1/xD+SXy6pvY3mqA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=rbox.co;
	spf=pass smtp.mailfrom=rbox.co;
	dkim=pass header.d=rbox.co header.i=@rbox.co header.a=rsa-sha256 header.s=selector1 header.b="MpWbqIM/";
	arc=none smtp.remote-ip=185.226.149.38
X-Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [185.226.149.38])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FC0C606A330;
	Thu,  3 Dec 2026 16:33:10 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3FC0C606A330
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rbox.co
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rbox.co
X-Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com)
	by mailtransmit05.runbox.com with esmtps  (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.93)
	(envelope-from <mhal@rbox.co>)
	id 1xZ9k3-001810-Ek; Thu, 03 Dec 2026 17:33:07 +0100
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=rbox.co;
	s=selector1; h=Cc:To:In-Reply-To:References:Message-Id:
	Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From;
	bh=R36hnTxpwWSF+ciW0JmcatW9T80YCpkJOTloqqH5EYQ=; b=MpWbqIM/BEdcRhwEncfnI0bum/
	jqlSFd/3ItMJ6VA3fCr/dKfM3KvLSiZ3MpZhQoerPK9+YH1/bhl6olIcZ9unx3bKOchzgDmGQmMpp
	jSY/LicCbsyjpuXniH9CiGus2AUPWShruaDPwet41Yx2u/GNxxzGmgBWvABPqed0Ti2G722dXY+wx
	ic5GLbF5wCq71GaiSg01xqITCbKzmncGSWB0xX34lu/dkc2hZsEBQ9l9v9O4OyOpI3m9JulO08LBb
	DGiPnL5sGOU1Ag1kAsijoe8rq4yFlsmFCfACyOmnUP2ukfmO1DTscbwvGn7gYzIefzkoe7ymbOH1G
	kfAmAmgg==;
X-Received: from [10.9.9.73] (helo=submission02.runbox)
	by mailtransmit03.runbox with esmtp (Exim 4.86_2)
	(envelope-from <mhal@rbox.co>)
	id 1xZ9jv-0005Rk-J9; Thu, 03 Dec 2026 17:32:59 +0100
X-Received: by submission02.runbox with esmtpsa  [Authenticated ID (604044)]  (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.95)
	id 1xZ9ji-000rIn-6K;
	Thu, 03 Dec 2026 17:32:46 +0100
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-0-ed0c08ca9e0c@rbox.co>
X-Cc: virtualization@lists.linux.dev, kvm@vger.kernel.org, 
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org, 
 linux-hyperv@vger.kernel.org, Michal Luczaj <mhal@rbox.co>
X-Mailer: b4 0.15.2