From: Arvind Yadav Date: Wed, 1 Nov 2017 17:45:43 +0000 (-0700) Subject: drm/vmwgfx: constify vmw_fence_ops X-Git-Tag: v4.14~10^2~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef217b1f08fdfe94cd75308f5487bc311640105d;p=platform%2Fkernel%2Flinux-exynos.git drm/vmwgfx: constify vmw_fence_ops vmw_fence_ops are not supposed to change at runtime. Functions "dma_fence_init" working with const vmw_fence_ops provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav Reviewed-by: Thomas Hellstrom --- diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c index 3bbad22..d6b1c50 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c @@ -224,7 +224,7 @@ out: return ret; } -static struct dma_fence_ops vmw_fence_ops = { +static const struct dma_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,