diff options
author | Stephen Kitt <steve@sk2.org> | 2018-03-09 00:38:41 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-03-15 07:35:43 +0300 |
commit | 1929e82e37d9c43ce7063025877a779ac649d1e0 (patch) | |
tree | 931086037697fdd1e231002ddffbe9af43de3f09 /drivers/scsi/megaraid.h | |
parent | 88b13609afca8ed2992c107c15326b4a8142e5da (diff) | |
download | linux-1929e82e37d9c43ce7063025877a779ac649d1e0.tar.xz |
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>
Diffstat (limited to 'drivers/scsi/megaraid.h')
0 files changed, 0 insertions, 0 deletions