drm/vmwgfx: use designated initializers
authorKees Cook <keescook@chromium.org>
Sat, 17 Dec 2016 01:04:02 +0000 (17:04 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 18 Dec 2016 13:48:26 +0000 (14:48 +0100)
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: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161217010402.GA140546@beast
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c

index 170b61be1e4ece3069a9f9c20e7c90d1f9558ae9..fec7348cea2cbed0c79f10b89af773cbbc1400cf 100644 (file)
@@ -164,9 +164,9 @@ static void vmw_gmrid_man_debug(struct ttm_mem_type_manager *man,
 }
 
 const struct ttm_mem_type_manager_func vmw_gmrid_manager_func = {
-       vmw_gmrid_man_init,
-       vmw_gmrid_man_takedown,
-       vmw_gmrid_man_get_node,
-       vmw_gmrid_man_put_node,
-       vmw_gmrid_man_debug
+       .init = vmw_gmrid_man_init,
+       .takedown = vmw_gmrid_man_takedown,
+       .get_node = vmw_gmrid_man_get_node,
+       .put_node = vmw_gmrid_man_put_node,
+       .debug = vmw_gmrid_man_debug
 };