[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210209234817.55112-1-rikard.falkeborn@gmail.com>
Date: Wed, 10 Feb 2021 00:48:14 +0100
From: Rikard Falkeborn <rikard.falkeborn@...il.com>
To: David Airlie <airlied@...ux.ie>, Daniel Vetter <daniel@...ll.ch>
Cc: Christian König <christian.koenig@....com>,
Alex Deucher <alexander.deucher@....com>,
Ben Skeggs <bskeggs@...hat.com>,
Felix Kuehling <Felix.Kuehling@....com>,
Likun Gao <Likun.Gao@....com>, amd-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
nouveau@...ts.freedesktop.org,
Rikard Falkeborn <rikard.falkeborn@...il.com>
Subject: [PATCH 0/3] drm/ttm: constify static vm_operations_structs
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
Powered by blists - more mailing lists