Commit b6d4abc9 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Christian König

drm/radeon/ttm: constify static vm_operations_struct

The only usage of radeon_ttm_vm_ops is to assign its address to the
vm_ops field in the vm_area_struct struct. Make it const to allow the
compiler to put it in read-only memory
Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210209234817.55112-3-rikard.falkeborn@gmail.comSigned-off-by: default avatarChristian König <christian.koenig@amd.com>
parent fff72bb5
...@@ -838,7 +838,7 @@ static vm_fault_t radeon_ttm_fault(struct vm_fault *vmf) ...@@ -838,7 +838,7 @@ static vm_fault_t radeon_ttm_fault(struct vm_fault *vmf)
return ret; return ret;
} }
static struct vm_operations_struct radeon_ttm_vm_ops = { static const struct vm_operations_struct radeon_ttm_vm_ops = {
.fault = radeon_ttm_fault, .fault = radeon_ttm_fault,
.open = ttm_bo_vm_open, .open = ttm_bo_vm_open,
.close = ttm_bo_vm_close, .close = ttm_bo_vm_close,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment