aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-12-16 20:02:32 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-01-27 11:12:40 -0500
commit613e61a0252c54371c957d44767544a76f0da3a6 (patch)
treed571b41b7dc3bc75523c04a7e8d7e37077e0cd7f /drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
parentf7e9e9feb09f833d03f5fc3f378083b4664bd374 (diff)
drm/amdgpu: use designated initializers
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
index c6c125d31161..e4eb6dd3798a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
@@ -243,9 +243,9 @@ static void amdgpu_gtt_mgr_debug(struct ttm_mem_type_manager *man,
243} 243}
244 244
245const struct ttm_mem_type_manager_func amdgpu_gtt_mgr_func = { 245const struct ttm_mem_type_manager_func amdgpu_gtt_mgr_func = {
246 amdgpu_gtt_mgr_init, 246 .init = amdgpu_gtt_mgr_init,
247 amdgpu_gtt_mgr_fini, 247 .takedown = amdgpu_gtt_mgr_fini,
248 amdgpu_gtt_mgr_new, 248 .get_node = amdgpu_gtt_mgr_new,
249 amdgpu_gtt_mgr_del, 249 .put_node = amdgpu_gtt_mgr_del,
250 amdgpu_gtt_mgr_debug 250 .debug = amdgpu_gtt_mgr_debug
251}; 251};