summaryrefslogtreecommitdiffstats
path: root/net/vmw_vsock/vmci_transport_notify.h
diff options
context:
space:
mode:
authorJulia Lawall2015-11-21 18:39:17 +0100
committerDavid S. Miller2015-11-23 21:49:29 +0100
commit3b22dae38db1cea9ead3229f08cfb0b69aca5706 (patch)
treeb9130649d371901ba17dac7c00f73c4e6c8949ee /net/vmw_vsock/vmci_transport_notify.h
parentnet: atm: constify in_cache_ops and eg_cache_ops structures (diff)
downloadkernel-qcow2-linux-3b22dae38db1cea9ead3229f08cfb0b69aca5706.tar.gz
kernel-qcow2-linux-3b22dae38db1cea9ead3229f08cfb0b69aca5706.tar.xz
kernel-qcow2-linux-3b22dae38db1cea9ead3229f08cfb0b69aca5706.zip
VSOCK: constify vmci_transport_notify_ops structures
The vmci_transport_notify_ops structures are never modified, so declare them 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_notify.h')
-rw-r--r--net/vmw_vsock/vmci_transport_notify.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/vmw_vsock/vmci_transport_notify.h b/net/vmw_vsock/vmci_transport_notify.h
index 7df793249b6c..3c464d394a8f 100644
--- a/net/vmw_vsock/vmci_transport_notify.h
+++ b/net/vmw_vsock/vmci_transport_notify.h
@@ -77,7 +77,8 @@ struct vmci_transport_notify_ops {
void (*process_negotiate) (struct sock *sk);
};
-extern struct vmci_transport_notify_ops vmci_transport_notify_pkt_ops;
-extern struct vmci_transport_notify_ops vmci_transport_notify_pkt_q_state_ops;
+extern const struct vmci_transport_notify_ops vmci_transport_notify_pkt_ops;
+extern const
+struct vmci_transport_notify_ops vmci_transport_notify_pkt_q_state_ops;
#endif /* __VMCI_TRANSPORT_NOTIFY_H__ */