From: Julia Lawall Date: Sun, 1 May 2016 12:49:15 +0000 (+0200) Subject: VSOCK: constify vsock_transport structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=56130915bbe31656c80f7493d28536693f8de0e2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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,