aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2025-05-02 22:41:57 +0000
committerKees Cook <[email protected]>2025-05-08 16:42:06 +0000
commitd8720235d5b5cad86c1f07f65117ef2a96f8bec7 (patch)
treec719cb11c77e5a191e273167e5c1fdd2b7a62f54 /scripts/gcc-plugins/randomize_layout_plugin.c
parentmd/bcache: Mark __nonstring look-up table (diff)
downloadkernel-d8720235d5b5cad86c1f07f65117ef2a96f8bec7.tar.gz
kernel-d8720235d5b5cad86c1f07f65117ef2a96f8bec7.zip
scsi: qedf: Use designated initializer for struct qed_fcoe_cb_ops
Recent fixes to the randstruct GCC plugin allowed it to notice that this structure is entirely function pointers and is therefore subject to randomization, but doing so requires that it always use designated initializers. Explicitly specify the "common" member as being initialized. Silences: drivers/scsi/qedf/qedf_main.c:702:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init] 702 | { | ^ Fixes: 035f7f87b729 ("randstruct: Enable Clang support") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions