Re: Notable build failures in next-20210823
From: Stephen Rothwell <hidden>
Date: 2021-08-23 23:36:48
Also in:
dri-devel
Attachments
- (unnamed) [application/pgp-signature] 488 bytes
From: Stephen Rothwell <hidden>
Date: 2021-08-23 23:36:48
Also in:
dri-devel
Hi allr, On Mon, 23 Aug 2021 08:47:38 -0700 Guenter Roeck [off-list ref] wrote:
Seen in next-20210823: Building x86_64:allyesconfig ... failed drivers/gpu/drm/i915/i915_module.c:50:11: error: positional initialization of field in 'struct' declared with 'designated_init' attribute This only happens with CONFIG_GCC_PLUGIN_RANDSTRUCT=y.
Caused by commit
a04ea6ae7c67 ("drm/i915: Use a table for i915_init/exit (v2)")
and then moved to this file by
708b7df3480a ("drm/i915: Extract i915_module.c")
from the drm tree.
CONFIG_GCC_PLUGIN_RANDSTRUCT help says
If you say Y here, the layouts of structures that are entirely
function pointers (and have not been manually annotated with
__no_randomize_layout), or structures that have been explicitly
marked with __randomize_layout, will be randomized at compile-time.
--
Cheers,
Stephen Rothwell