summaryrefslogtreecommitdiffstats
path: root/net/vmw_vsock/vmci_transport.c
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2016-05-01 14:49:15 +0200
committerDavid S. Miller <davem@davemloft.net>2016-05-03 13:03:05 -0400
commit56130915bbe31656c80f7493d28536693f8de0e2 (patch)
treea76de313219eae79ddf70fcf6ba3ca4d580a3fba /net/vmw_vsock/vmci_transport.c
parentb555a3d1e91cfa75eb37680c0c86a32d18215729 (diff)
downloadlinux-stable-56130915bbe31656c80f7493d28536693f8de0e2.tar.gz
linux-stable-56130915bbe31656c80f7493d28536693f8de0e2.tar.bz2
linux-stable-56130915bbe31656c80f7493d28536693f8de0e2.zip
VSOCK: constify vsock_transport structure
The vsock_transport structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/vmw_vsock/vmci_transport.c')
-rw-r--r--net/vmw_vsock/vmci_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/vmw_vsock/vmci_transport.c b/net/vmw_vsock/vmci_transport.c
index 56214736fe88..4120b7a538be 100644
--- a/net/vmw_vsock/vmci_transport.c
+++ b/net/vmw_vsock/vmci_transport.c
@@ -2051,7 +2051,7 @@ static u32 vmci_transport_get_local_cid(void)
return vmci_get_context_id();
}
-static struct vsock_transport vmci_transport = {
+static const struct vsock_transport vmci_transport = {
.init = vmci_transport_socket_init,
.destruct = vmci_transport_destruct,
.release = vmci_transport_release,