diff options
| author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-11-01 13:45:43 -0400 |
|---|---|---|
| committer | Sinclair Yeh <syeh@vmware.com> | 2017-11-01 13:45:43 -0400 |
| commit | ef217b1f08fdfe94cd75308f5487bc311640105d (patch) | |
| tree | f5bd09e408472e57adecf2b5cf484452bcb97c53 | |
| parent | 25dd1aa3b4cf0c361147aa45ff4dd1d335259ac1 (diff) | |
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>
| -rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c index 3bbad22b3748..d6b1c509ae01 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | |||
| @@ -224,7 +224,7 @@ out: | |||
| 224 | return ret; | 224 | return ret; |
| 225 | } | 225 | } |
| 226 | 226 | ||
| 227 | static struct dma_fence_ops vmw_fence_ops = { | 227 | static const struct dma_fence_ops vmw_fence_ops = { |
| 228 | .get_driver_name = vmw_fence_get_driver_name, | 228 | .get_driver_name = vmw_fence_get_driver_name, |
| 229 | .get_timeline_name = vmw_fence_get_timeline_name, | 229 | .get_timeline_name = vmw_fence_get_timeline_name, |
| 230 | .enable_signaling = vmw_fence_enable_signaling, | 230 | .enable_signaling = vmw_fence_enable_signaling, |
