diff options
author | Jani Nikula <jani.nikula@intel.com> | 2024-01-17 14:20:43 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2024-01-19 14:35:53 +0200 |
commit | 480ea9e306c7fdbfb24b0af046c28c10b98a74ab (patch) | |
tree | 36e37014d83a1bdea0f82076eedc27ddad5a7ffd | |
parent | 3cacf808c9d8e302ff7cd94579a5d3c540232f9e (diff) |
drm/xe: make gpuvm_ops const
Place the function pointers in rodata.
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240117122044.1544174-4-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
-rw-r--r-- | drivers/gpu/drm/xe/xe_vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c index a7e7a0b240991..7ea0f151d223c 100644 --- a/drivers/gpu/drm/xe/xe_vm.c +++ b/drivers/gpu/drm/xe/xe_vm.c @@ -1054,7 +1054,7 @@ static struct drm_gpuva_op *xe_vm_op_alloc(void) static void xe_vm_free(struct drm_gpuvm *gpuvm); -static struct drm_gpuvm_ops gpuvm_ops = { +static const struct drm_gpuvm_ops gpuvm_ops = { .op_alloc = xe_vm_op_alloc, .vm_bo_validate = xe_gpuvm_validate, .vm_free = xe_vm_free, |