summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2016-05-01 14:49:15 +0200
committerAlistair Strachan <astrachan@google.com>2019-05-14 17:56:54 -0700
commitf8b9e1a37bcc1f80f05e3442b832579416ca32f7 (patch)
treed333e1c991fcde69d5c5c971203c18bdfa18efde /net
parent74df5bd4266a1206e3f156a9f1a29e2de4d915ec (diff)
UPSTREAM: 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> (cherry picked from commit 56130915bbe31656c80f7493d28536693f8de0e2) Bug: 121166534 Test: Ran cuttlefish with android-4.4 + VSOCKETS, VMWARE_VMCI_VSOCKETS Signed-off-by: Cody Schuffelen <schuffelen@google.com> Change-Id: I59ffded185fbf22aaeb39753870ef9c866ab1a2a
Diffstat (limited to 'net')
-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 4597d6a5da5c..f3fc34f7a77e 100644
--- a/net/vmw_vsock/vmci_transport.c
+++ b/net/vmw_vsock/vmci_transport.c
@@ -2087,7 +2087,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,