Re: [Intel-gfx] [PATCH] drm/i915: Use designated initializers for init/exit table

2021-08-18 Thread Daniel Vetter
On Tue, Aug 17, 2021 at 04:33:57PM -0700, Kees Cook wrote: > The kernel builds with -Werror=designated-init, and __designated_init > is used by CONFIG_GCC_PLUGIN_RANDSTRUCT for automatically selected (all > function pointer) structures. Include the field names in the init/exit > table. Avoids warni

[Intel-gfx] [PATCH] drm/i915: Use designated initializers for init/exit table

2021-08-17 Thread Kees Cook
The kernel builds with -Werror=designated-init, and __designated_init is used by CONFIG_GCC_PLUGIN_RANDSTRUCT for automatically selected (all function pointer) structures. Include the field names in the init/exit table. Avoids warnings like: drivers/gpu/drm/i915/i915_module.c:59:4: error: position