Commit 4e98c378 authored by Kees Cook's avatar Kees Cook Committed by Daniel Vetter

drm/ttm: 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: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161217010011.GA140300@beast
parent c92f7237
...@@ -148,10 +148,10 @@ static void ttm_bo_man_debug(struct ttm_mem_type_manager *man, ...@@ -148,10 +148,10 @@ static void ttm_bo_man_debug(struct ttm_mem_type_manager *man,
} }
const struct ttm_mem_type_manager_func ttm_bo_manager_func = { const struct ttm_mem_type_manager_func ttm_bo_manager_func = {
ttm_bo_man_init, .init = ttm_bo_man_init,
ttm_bo_man_takedown, .takedown = ttm_bo_man_takedown,
ttm_bo_man_get_node, .get_node = ttm_bo_man_get_node,
ttm_bo_man_put_node, .put_node = ttm_bo_man_put_node,
ttm_bo_man_debug .debug = ttm_bo_man_debug
}; };
EXPORT_SYMBOL(ttm_bo_manager_func); EXPORT_SYMBOL(ttm_bo_manager_func);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment