linux/drivers/scsi/bfa
Gustavo A. R. Silva c4c5fa3556 scsi: bfa: Replace one-element array with flexible-array member
One-element arrays are deprecated, and we are replacing them with flexible
array members instead. So, replace one-element array with flexible-array
member in struct fdmi_attr_s.

Important to mention is that doing a build before/after this patch results
in no binary output differences.

This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines
on memcpy() and help us make progress towards globally enabling
-fstrict-flex-arrays=3 [1].

Link: https://github.com/KSPP/linux/issues/209
Link: https://github.com/KSPP/linux/issues/79
Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1]
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/Y3P1rEEBq7HzJygq@work
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-11-17 18:15:45 +00:00
..
bfa_core.c
bfa_cs.h
bfa_defs_fcs.h
bfa_defs_svc.h scsi: bfa: Fix typo 2021-05-21 17:00:21 -04:00
bfa_defs.h
bfa_fc.h scsi: bfa: Replace one-element array with flexible-array member 2022-11-17 18:15:45 +00:00
bfa_fcbuild.c
bfa_fcbuild.h
bfa_fcpim.c scsi: bfa: Drop driver-defined SCSI status codes 2021-01-22 21:14:08 -05:00
bfa_fcpim.h
bfa_fcs_fcpim.c
bfa_fcs_lport.c scsi: bfa: Move a large struct from the stack onto the heap 2021-03-15 22:28:58 -04:00
bfa_fcs_rport.c
bfa_fcs.c
bfa_fcs.h scsi: bfa: Remove unnecessary struct declarations 2021-04-05 23:44:01 -04:00
bfa_hw_cb.c
bfa_hw_ct.c
bfa_ioc_cb.c
bfa_ioc_ct.c
bfa_ioc.c
bfa_ioc.h
bfa_modules.h
bfa_plog.h
bfa_port.c
bfa_port.h
bfa_svc.c scsi: bfa: Fix inconsistent indenting 2021-05-21 17:01:18 -04:00
bfa_svc.h
bfa.h
bfad_attr.c scsi: bfa: Replace snprintf() with sysfs_emit() 2022-01-31 16:59:59 -05:00
bfad_bsg.c scsi: bfa: Rework bfad_reset_sdev_bflags() 2022-11-08 03:34:39 +00:00
bfad_bsg.h
bfad_debugfs.c scsi: bfa: Remove redundant NULL check 2022-04-25 23:23:05 -04:00
bfad_drv.h
bfad_im.c scsi: bfa: Remove unneeded flush_workqueue() 2022-04-25 23:38:38 -04:00
bfad_im.h scsi: bfa: Convert bfad_reset_sdev_bflags() from a macro into a function 2022-11-08 03:34:39 +00:00
bfad.c scsi: bfa: Remove useless DMA-32 fallback configuration 2022-01-24 23:30:29 -05:00
bfi_ms.h
bfi_reg.h
bfi.h
Makefile