All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] VSOCK: constify vsock_transport structure
@ 2016-05-01 12:49 ` Julia Lawall
  0 siblings, 0 replies; 6+ messages in thread
From: Julia Lawall @ 2016-05-01 12:49 UTC (permalink / raw)
  To: David S. Miller
  Cc: kernel-janitors, Ray Jui, Scott Branden, Jon Mason, netdev,
	linux-arm-kernel, bcm-kernel-feedback-list, linux-kernel

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>

---
 net/vmw_vsock/vmci_transport.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/vmw_vsock/vmci_transport.c b/net/vmw_vsock/vmci_transport.c
index 5621473..4120b7a 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,

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] VSOCK: constify vsock_transport structure
@ 2016-05-01 12:49 ` Julia Lawall
  0 siblings, 0 replies; 6+ messages in thread
From: Julia Lawall @ 2016-05-01 12:49 UTC (permalink / raw)
  To: linux-arm-kernel

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>

---
 net/vmw_vsock/vmci_transport.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/vmw_vsock/vmci_transport.c b/net/vmw_vsock/vmci_transport.c
index 5621473..4120b7a 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,


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] VSOCK: constify vsock_transport structure
@ 2016-05-01 12:49 ` Julia Lawall
  0 siblings, 0 replies; 6+ messages in thread
From: Julia Lawall @ 2016-05-01 12:49 UTC (permalink / raw)
  To: linux-arm-kernel

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>

---
 net/vmw_vsock/vmci_transport.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/vmw_vsock/vmci_transport.c b/net/vmw_vsock/vmci_transport.c
index 5621473..4120b7a 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,

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] VSOCK: constify vsock_transport structure
  2016-05-01 12:49 ` Julia Lawall
  (?)
@ 2016-05-03 17:03   ` David Miller
  -1 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2016-05-03 17:03 UTC (permalink / raw)
  To: Julia.Lawall
  Cc: kernel-janitors, rjui, sbranden, jonmason, netdev,
	linux-arm-kernel, bcm-kernel-feedback-list, linux-kernel

From: Julia Lawall <Julia.Lawall@lip6.fr>
Date: Sun,  1 May 2016 14:49:15 +0200

> 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>

Applied.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] VSOCK: constify vsock_transport structure
@ 2016-05-03 17:03   ` David Miller
  0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2016-05-03 17:03 UTC (permalink / raw)
  To: linux-arm-kernel

From: Julia Lawall <Julia.Lawall@lip6.fr>
Date: Sun,  1 May 2016 14:49:15 +0200

> 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>

Applied.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] VSOCK: constify vsock_transport structure
@ 2016-05-03 17:03   ` David Miller
  0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2016-05-03 17:03 UTC (permalink / raw)
  To: linux-arm-kernel

From: Julia Lawall <Julia.Lawall@lip6.fr>
Date: Sun,  1 May 2016 14:49:15 +0200

> 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>

Applied.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-03 17:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-01 12:49 [PATCH] VSOCK: constify vsock_transport structure Julia Lawall
2016-05-01 12:49 ` Julia Lawall
2016-05-01 12:49 ` Julia Lawall
2016-05-03 17:03 ` David Miller
2016-05-03 17:03   ` David Miller
2016-05-03 17:03   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.