2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/scsi/qedf
Kees Cook d8720235d5 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: 035f7f87b7 ("randstruct: Enable Clang support")
Link: https://lore.kernel.org/r/20250502224156.work.617-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
2025-05-08 09:42:06 -07:00
..
drv_fcoe_fw_funcs.c qed: Remove e4_ and _e4 from FW HSI 2021-10-04 12:55:48 +01:00
drv_fcoe_fw_funcs.h qed: Remove e4_ and _e4 from FW HSI 2021-10-04 12:55:48 +01:00
drv_scsi_fw_funcs.c
drv_scsi_fw_funcs.h
Kconfig
Makefile
qedf_attr.c scsi: qedf: Constify 'struct bin_attribute' 2025-01-02 15:07:46 -05:00
qedf_dbg.c scsi: qedf: Use vzalloc() instead of vmalloc()/memset(0) 2021-05-21 16:31:17 -04:00
qedf_dbg.h scsi: qedf: Constify 'struct bin_attribute' 2025-01-02 15:07:46 -05:00
qedf_debugfs.c scsi: qedf: Ensure the copied buf is NUL terminated 2024-05-06 21:19:24 -04:00
qedf_els.c qed: Remove e4_ and _e4 from FW HSI 2021-10-04 12:55:48 +01:00
qedf_fip.c
qedf_hsi.h
qedf_io.c scsi: qedf: Remove trailing space after \n newline 2024-09-12 20:28:58 -04:00
qedf_main.c scsi: qedf: Use designated initializer for struct qed_fcoe_cb_ops 2025-05-08 09:42:06 -07:00
qedf_version.h
qedf.h scsi: qedf: Wait for stag work during unload 2024-05-15 10:26:53 -04:00