]> Git Repo - linux.git/commitdiff
drm/vmwgfx: constify vmw_fence_ops
authorArvind Yadav <[email protected]>
Wed, 1 Nov 2017 17:45:43 +0000 (10:45 -0700)
committerSinclair Yeh <[email protected]>
Wed, 1 Nov 2017 17:45:43 +0000 (10:45 -0700)
vmw_fence_ops are not supposed to change at runtime. Functions
"dma_fence_init" working with const vmw_fence_ops provided
by <linux/dma-fence.h>. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <[email protected]>
Reviewed-by: Thomas Hellstrom <[email protected]>
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c

index 3bbad22b37488cec5417b8e605b77ef8a4f2e399..d6b1c509ae019d1aae404ff5163506d5e819155e 100644 (file)
@@ -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,
This page took 0.079058 seconds and 4 git commands to generate.