]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
drm/vmwgfx: constify vmw_fence_ops
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 1 Nov 2017 17:45:43 +0000 (10:45 -0700)
committerSinclair Yeh <syeh@vmware.com>
Wed, 1 Nov 2017 17:45:43 +0000 (10:45 -0700)
commitef217b1f08fdfe94cd75308f5487bc311640105d
treef5bd09e408472e57adecf2b5cf484452bcb97c53
parent25dd1aa3b4cf0c361147aa45ff4dd1d335259ac1
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>
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c