diff options
| author | 2018-03-08 22:38:41 +0100 | |
|---|---|---|
| committer | 2018-03-15 00:35:43 -0400 | |
| commit | 1929e82e37d9c43ce7063025877a779ac649d1e0 (patch) | |
| tree | 931086037697fdd1e231002ddffbe9af43de3f09 /include/linux/debugobjects.h | |
| parent | scsi: aic7xxx: aic79xx: remove VLAs (diff) | |
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 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
