Skip to content

Commit 2a9d6d2

Browse files
committed
drm/amdgpu: Use designated initializers
The randstruct plugin requires structures that are entirely function pointers be initialized using designated initializers. Cc: Alex Deucher <[email protected]> Cc: Christian König <[email protected]> Signed-off-by: Kees Cook <[email protected]>
1 parent 234041d commit 2a9d6d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ static void amdgpu_vram_mgr_debug(struct ttm_mem_type_manager *man,
220220
}
221221

222222
const struct ttm_mem_type_manager_func amdgpu_vram_mgr_func = {
223-
amdgpu_vram_mgr_init,
224-
amdgpu_vram_mgr_fini,
225-
amdgpu_vram_mgr_new,
226-
amdgpu_vram_mgr_del,
227-
amdgpu_vram_mgr_debug
223+
.init = amdgpu_vram_mgr_init,
224+
.takedown = amdgpu_vram_mgr_fini,
225+
.get_node = amdgpu_vram_mgr_new,
226+
.put_node = amdgpu_vram_mgr_del,
227+
.debug = amdgpu_vram_mgr_debug
228228
};

0 commit comments

Comments
 (0)