[PATCH net-next RFC 3/5] vsock/virtio: constify vhost_transport
From: Michal Luczaj
Date: Thu Dec 03 2026 - 11:33:28 EST
Struct is never modified. Add `const` qualifier, let it be moved to
read-only section.
No functional change intended.
Signed-off-by: Michal Luczaj <mhal@xxxxxxx>
---
drivers/vhost/vsock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c
index 03a3b833640d..edb57b03c9e2 100644
--- a/drivers/vhost/vsock.c
+++ b/drivers/vhost/vsock.c
@@ -441,7 +441,7 @@ vhost_transport_stream_allow(struct vsock_sock *vsk, u32 cid, u32 port)
return true;
}
-static struct virtio_transport vhost_transport = {
+static const struct virtio_transport vhost_transport = {
.transport = {
.module = THIS_MODULE,
--
2.56.1