summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorNils Wallménius2016-05-02 18:46:15 +0200
committerAlex Deucher2016-05-05 02:20:10 +0200
commit06ab6832ac06c77332e3b0415977acf68ea364cf (patch)
treeb40e6011af74c5c1da7ce91305235b1b0139d22a /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentdrm/amd/scheduler: Mark amdgpu_sched_ops const (diff)
downloadkernel-qcow2-linux-06ab6832ac06c77332e3b0415977acf68ea364cf.tar.gz
kernel-qcow2-linux-06ab6832ac06c77332e3b0415977acf68ea364cf.tar.xz
kernel-qcow2-linux-06ab6832ac06c77332e3b0415977acf68ea364cf.zip
drm/amdgpu: Mark all instances of struct drm_info_list as const
All these are compile time constand and the drm_debugfs_create/remove_files functions take a const pointer argument. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Nils Wallménius <nils.wallmenius@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
index fa6a27bff298..0635bb6b45c4 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
@@ -797,7 +797,7 @@ static int amdgpu_debugfs_gem_info(struct seq_file *m, void *data)
return 0;
}
-static struct drm_info_list amdgpu_debugfs_gem_list[] = {
+static const struct drm_info_list amdgpu_debugfs_gem_list[] = {
{"amdgpu_gem_info", &amdgpu_debugfs_gem_info, 0, NULL},
};
#endif