All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] drm/ttm: constify static vm_operations_structs
@ 2021-02-09 23:48 ` Rikard Falkeborn
  0 siblings, 0 replies; 32+ messages in thread
From: Rikard Falkeborn @ 2021-02-09 23:48 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter
  Cc: Christian König, Alex Deucher, Ben Skeggs, Felix Kuehling,
	Likun Gao, amd-gfx, dri-devel, linux-kernel, nouveau,
	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(-)

-- 
2.30.0


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

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

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.