summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2025-05-02 15:41:57 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-27 11:04:25 +0100
commit85d7a81b968ad8061df5e7f3e8c884f96763caa0 (patch)
tree7402ee94be10a241f6addfc0a865b8e219fc100b /tools
parent973c7a0d8a38e675570c3336c664f5610bd4eb19 (diff)
downloadlinux-85d7a81b968ad8061df5e7f3e8c884f96763caa0.tar.gz
linux-85d7a81b968ad8061df5e7f3e8c884f96763caa0.tar.bz2
linux-85d7a81b968ad8061df5e7f3e8c884f96763caa0.zip
scsi: qedf: Use designated initializer for struct qed_fcoe_cb_ops
commit d8720235d5b5cad86c1f07f65117ef2a96f8bec7 upstream. 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/20250502224156.work.617-kees@kernel.org Signed-off-by: Kees Cook <kees@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions