drm/xe: make gpuvm_ops const
authorJani Nikula <jani.nikula@intel.com>
Wed, 17 Jan 2024 12:20:43 +0000 (14:20 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 19 Jan 2024 12:35:53 +0000 (14:35 +0200)
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>
drivers/gpu/drm/xe/xe_vm.c

index a7e7a0b240991a276655019af955a24c058b74b7..7ea0f151d223c1f334bae9ee493222151187b0c7 100644 (file)
@@ -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,