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 <mh…@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