aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2025-05-07 20:47:45 +0000
committerKees Cook <[email protected]>2025-05-08 16:42:34 +0000
commit960013ec5b5e86c2c096e79ce6e08bce970650b3 (patch)
tree20ed0cf318a203b4a289c54f22a1d9e33e6fc570 /scripts/gcc-plugins
parentscsi: qedf: Use designated initializer for struct qed_fcoe_cb_ops (diff)
downloadkernel-960013ec5b5e86c2c096e79ce6e08bce970650b3.tar.gz
kernel-960013ec5b5e86c2c096e79ce6e08bce970650b3.zip
net: qede: Initialize qede_ll_ops with designated initializer
After a recent change [1] in clang's randstruct implementation to randomize structures that only contain function pointers, there is an error because qede_ll_ops get randomized but does not use a designated initializer for the first member: drivers/net/ethernet/qlogic/qede/qede_main.c:206:2: error: a randomized struct can only be initialized with a designated initializer 206 | { | ^ Explicitly initialize the common member using a designated initializer to fix the build. Cc: [email protected] Fixes: 035f7f87b729 ("randstruct: Enable Clang support") Link: https://github.com/llvm/llvm-project/commit/04364fb888eea6db9811510607bed4b200bcb082 [1] Signed-off-by: Nathan Chancellor <[email protected]> Reviewed-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions