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>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user