mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 17:51:57 +09:00
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: Rikard Falkeborn <rikard.falkeborn@gmail.com> Reviewed-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210209234817.55112-3-rikard.falkeborn@gmail.com Signed-off-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
committed by
Christian König
parent
fff72bb569
commit
b6d4abc9ae
@@ -838,7 +838,7 @@ unlock_mclk:
|
||||
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,
|
||||
.open = ttm_bo_vm_open,
|
||||
.close = ttm_bo_vm_close,
|
||||
|
||||
Reference in New Issue
Block a user