]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/ttm: constify static vm_operations_struct
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 9 Feb 2021 23:48:16 +0000 (00:48 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 25 Feb 2021 13:40:24 +0000 (14:40 +0100)
commitc78e1ef6f2f9077d70b9229eb749facee54b49ec
treed784b3cda15f954438cf488b6632ec467e3a200a
parent8fae0d0d6a30906c25829d0b49b3251c9561b9f2
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>
drivers/gpu/drm/radeon/radeon_ttm.c