OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b555a3d
)
VSOCK: constify vsock_transport structure
author
Julia Lawall
<julia.lawall@lip6.fr>
Sun, 1 May 2016 12:49:15 +0000
(14:49 +0200)
committer
David S. Miller
<davem@davemloft.net>
Tue, 3 May 2016 17:03:05 +0000
(13:03 -0400)
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>
net/vmw_vsock/vmci_transport.c
patch
|
blob
|
history
diff --git
a/net/vmw_vsock/vmci_transport.c
b/net/vmw_vsock/vmci_transport.c
index
5621473
..
4120b7a
100644
(file)
--- 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,