kernel_optimize_test/drivers/scsi/bfa
Stephen Kitt 1929e82e37 scsi: bfa: remove VLA
In preparation to enabling -Wvla, remove VLAs and replace them with
fixed-length arrays instead.

bfad_bsg.c uses a variable-length array declaration to measure the
size of a putative array; this can be replaced by the product of the
size of an element and the number of elements, avoiding the VLA
altogether.

This was prompted by https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Stephen Kitt <steve@sk2.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-03-15 00:35:43 -04:00
..
bfa_core.c scsi: bfa: use ARRAY_SIZE for array sizing calculation on array __pciids 2018-01-10 23:25:10 -05:00
bfa_cs.h
bfa_defs_fcs.h
bfa_defs_svc.h scsi: bfa: use 64-bit times in bfa_aen_entry_s ABI 2017-12-04 20:32:52 -05:00
bfa_defs.h
bfa_fc.h
bfa_fcbuild.c scsi: bfa: convert to strlcpy/strlcat 2017-12-11 21:30:46 -05:00
bfa_fcbuild.h
bfa_fcpim.c scsi: bfa: document overflow of io_profile_start_time 2017-12-04 20:32:52 -05:00
bfa_fcpim.h scsi: bfa: document overflow of io_profile_start_time 2017-12-04 20:32:52 -05:00
bfa_fcs_fcpim.c
bfa_fcs_lport.c scsi: bfa: convert to strlcpy/strlcat 2017-12-11 21:30:46 -05:00
bfa_fcs_rport.c
bfa_fcs.c scsi: bfa: convert to strlcpy/strlcat 2017-12-11 21:30:46 -05:00
bfa_fcs.h
bfa_hw_cb.c
bfa_hw_ct.c
bfa_ioc_cb.c
bfa_ioc_ct.c
bfa_ioc.c scsi: bfa: convert to strlcpy/strlcat 2017-12-11 21:30:46 -05:00
bfa_ioc.h
bfa_modules.h
bfa_plog.h
bfa_port.c scsi: bfa: use proper time accessor for stats_reset_time 2017-12-04 20:32:52 -05:00
bfa_port.h scsi: bfa: use proper time accessor for stats_reset_time 2017-12-04 20:32:52 -05:00
bfa_svc.c scsi: bfa: convert to strlcpy/strlcat 2017-12-11 21:30:46 -05:00
bfa_svc.h scsi: bfa: use proper time accessor for stats_reset_time 2017-12-04 20:32:52 -05:00
bfa.h
bfad_attr.c scsi: bfa: convert to strlcpy/strlcat 2017-12-11 21:30:46 -05:00
bfad_bsg.c scsi: bfa: remove VLA 2018-03-15 00:35:43 -04:00
bfad_bsg.h
bfad_debugfs.c scsi: bfa: Use zeroing allocator rather than allocator/memset 2018-01-04 01:12:32 -05:00
bfad_drv.h
bfad_im.c scsi: bfa: fix type conversion warning 2017-12-07 19:57:54 -05:00
bfad_im.h SCSI misc on 20180131 2018-01-31 11:23:28 -08:00
bfad.c scsi: bfa: Use zeroing allocator rather than allocator/memset 2018-01-04 01:12:32 -05:00
bfi_ms.h
bfi_reg.h
bfi.h
Makefile