Skip to content

Commit ef217b1

Browse files
ArvindYadavCsSinclair Yeh
authored andcommitted
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 <linux/dma-fence.h>. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
1 parent 25dd1aa commit ef217b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/vmwgfx/vmwgfx_fence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static long vmw_fence_wait(struct dma_fence *f, bool intr, signed long timeout)
224224
return ret;
225225
}
226226

227-
static struct dma_fence_ops vmw_fence_ops = {
227+
static const struct dma_fence_ops vmw_fence_ops = {
228228
.get_driver_name = vmw_fence_get_driver_name,
229229
.get_timeline_name = vmw_fence_get_timeline_name,
230230
.enable_signaling = vmw_fence_enable_signaling,

0 commit comments

Comments
 (0)