Re: [PATCH 0/3] drm/ttm: constify static vm_operations_structs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reviewed-by: Christian König <christian.koenig@xxxxxxx> for the series.

Am 10.02.21 um 00:48 schrieb Rikard Falkeborn:
Constify a few static vm_operations_struct that are never modified. Their
only usage is to assign their address to the vm_ops field in the
vm_area_struct, which is a pointer to const vm_operations_struct. Make them
const to allow the compiler to put them in read-only memory.

With this series applied, all static struct vm_operations_struct in the
kernel tree are const.

Rikard Falkeborn (3):
   drm/amdgpu/ttm: constify static vm_operations_struct
   drm/radeon/ttm: constify static vm_operations_struct
   drm/nouveau/ttm: constify static vm_operations_struct

  drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +-
  drivers/gpu/drm/nouveau/nouveau_ttm.c   | 2 +-
  drivers/gpu/drm/radeon/radeon_ttm.c     | 2 +-
  3 files changed, 3 insertions(+), 3 deletions(-)


_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux