diff options
| author | Kees Cook <[email protected]> | 2021-08-17 16:33:57 -0700 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2021-08-18 11:55:40 +0200 |
| commit | 90fd2194a0cc52eb7a61dfa6412a0e498c58c688 (patch) | |
| tree | 1826efae4790a780008a97a7bba915d17e810bcd /tools/perf/scripts/python | |
| parent | d5ef86b38e4c2a65d5c1d64d8d0f3fcf58aa0884 (diff) | |
drm/i915: Use designated initializers for init/exit table
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: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
Cc: Jani Nikula <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: David Airlie <[email protected]>
Cc: [email protected]
Cc: [email protected]
Fixes: a04ea6ae7c67 ("drm/i915: Use a table for i915_init/exit (v2)")
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions