Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1269767 > unrolled thread

[PATCH] drm/vmwgfx: constify fence_ops structure

Started byJulia Lawall <Julia.Lawall@lip6.fr>
First post2015-11-15 22:00 +0100
Last post2015-11-15 22:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] drm/vmwgfx: constify fence_ops structure Julia Lawall <Julia.Lawall@lip6.fr> - 2015-11-15 22:00 +0100

#1269767 — [PATCH] drm/vmwgfx: constify fence_ops structure

FromJulia Lawall <Julia.Lawall@lip6.fr>
Date2015-11-15 22:00 +0100
Subject[PATCH] drm/vmwgfx: constify fence_ops structure
Message-ID<qvcz0-6iO-9@gated-at.bofh.it>
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,

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web