All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/vmwgfx: constify fence_ops structure
@ 2015-11-15 20:44 ` Julia Lawall
  0 siblings, 0 replies; 2+ messages in thread
From: Julia Lawall @ 2015-11-15 20:44 UTC (permalink / raw
  To: David Airlie; +Cc: kernel-janitors, dri-devel, linux-kernel

The fence_ops structures are never modified, so declare this one as const,
as is already done for the others.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
index 8e689b4..4d09da1 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
@@ -226,7 +226,7 @@ out:
 	return ret;
 }
 
-static struct fence_ops vmw_fence_ops = {
+static const struct fence_ops vmw_fence_ops = {
 	.get_driver_name = vmw_fence_get_driver_name,
 	.get_timeline_name = vmw_fence_get_timeline_name,
 	.enable_signaling = vmw_fence_enable_signaling,


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

* [PATCH] drm/vmwgfx: constify fence_ops structure
@ 2015-11-15 20:44 ` Julia Lawall
  0 siblings, 0 replies; 2+ messages in thread
From: Julia Lawall @ 2015-11-15 20:44 UTC (permalink / raw
  To: David Airlie; +Cc: kernel-janitors, dri-devel, linux-kernel

The fence_ops structures are never modified, so declare this one as const,
as is already done for the others.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
index 8e689b4..4d09da1 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
@@ -226,7 +226,7 @@ out:
 	return ret;
 }
 
-static struct fence_ops vmw_fence_ops = {
+static const struct fence_ops vmw_fence_ops = {
 	.get_driver_name = vmw_fence_get_driver_name,
 	.get_timeline_name = vmw_fence_get_timeline_name,
 	.enable_signaling = vmw_fence_enable_signaling,


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

end of thread, other threads:[~2015-11-15 20:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-15 20:44 [PATCH] drm/vmwgfx: constify fence_ops structure Julia Lawall
2015-11-15 20:44 ` Julia Lawall

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.