diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-02-10 02:48:16 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-02-25 16:40:24 +0300 |
commit | b6d4abc9ae627b071fef91c64a5ad8f884bbbc45 (patch) | |
tree | d784b3cda15f954438cf488b6632ec467e3a200a /drivers/gpu/drm/radeon/radeon_ttm.c | |
parent | fff72bb569ee97a5dafe287e6b9ff4ecdf4f6d6d (diff) | |
download | linux-b6d4abc9ae627b071fef91c64a5ad8f884bbbc45.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_ttm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ttm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index 5ed6a48246d6..4f05a3f95e1e 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c @@ -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, |