nouveau.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Nouveau] [PATCH 0/3] drm/ttm: constify static vm_operations_structs
@ 2021-02-09 23:48 Rikard Falkeborn
  2021-02-09 23:48 ` [Nouveau] [PATCH 1/3] drm/amdgpu/ttm: constify static vm_operations_struct Rikard Falkeborn
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Rikard Falkeborn @ 2021-02-09 23:48 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter
  Cc: dri-devel, nouveau, Felix Kuehling, linux-kernel, amd-gfx,
	Rikard Falkeborn, Ben Skeggs, Alex Deucher, Likun Gao,
	Christian König

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(-)

-- 
2.30.0

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-02-26  7:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09 23:48 [Nouveau] [PATCH 0/3] drm/ttm: constify static vm_operations_structs Rikard Falkeborn
2021-02-09 23:48 ` [Nouveau] [PATCH 1/3] drm/amdgpu/ttm: constify static vm_operations_struct Rikard Falkeborn
2021-02-09 23:48 ` [Nouveau] [PATCH 2/3] drm/radeon/ttm: " Rikard Falkeborn
2021-02-09 23:48 ` [Nouveau] [PATCH 3/3] drm/nouveau/ttm: " Rikard Falkeborn
2021-02-10  7:45 ` [Nouveau] [PATCH 0/3] drm/ttm: constify static vm_operations_structs Christian König
2021-02-10 13:14   ` Daniel Vetter
2021-02-23 17:31     ` Alex Deucher
2021-02-26  7:52       ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).