提交 2a9d6d26 编写于 作者: K Kees Cook

drm/amdgpu: Use designated initializers

The randstruct plugin requires structures that are entirely function
pointers be initialized using designated initializers.

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: NKees Cook <keescook@chromium.org>
上级 234041df
...@@ -220,9 +220,9 @@ static void amdgpu_vram_mgr_debug(struct ttm_mem_type_manager *man, ...@@ -220,9 +220,9 @@ static void amdgpu_vram_mgr_debug(struct ttm_mem_type_manager *man,
} }
const struct ttm_mem_type_manager_func amdgpu_vram_mgr_func = { const struct ttm_mem_type_manager_func amdgpu_vram_mgr_func = {
amdgpu_vram_mgr_init, .init = amdgpu_vram_mgr_init,
amdgpu_vram_mgr_fini, .takedown = amdgpu_vram_mgr_fini,
amdgpu_vram_mgr_new, .get_node = amdgpu_vram_mgr_new,
amdgpu_vram_mgr_del, .put_node = amdgpu_vram_mgr_del,
amdgpu_vram_mgr_debug .debug = amdgpu_vram_mgr_debug
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册