diff options
author | Kees Cook <keescook@chromium.org> | 2018-05-03 00:55:45 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-05-15 04:32:45 +0200 |
commit | 97e066184b855dd2df4e82c2d1feff37282c53fd (patch) | |
tree | 22e84b29d9d69e6f7bc9c3b66903d67f949507f2 /drivers/target | |
parent | scsi: tcmu: refactor nl wr_cache attr with new helpers (diff) | |
download | linux-97e066184b855dd2df4e82c2d1feff37282c53fd.tar.xz linux-97e066184b855dd2df4e82c2d1feff37282c53fd.zip |
scsi: libosd: Remove VLA usage
On the quest to remove all VLAs from the kernel[1] this rearranges the
code to avoid a VLA warning under -Wvla (gcc doesn't recognize "const"
variables as not triggering VLA creation). Additionally cleans up
variable naming to avoid 80 character column limit.
[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Boaz Harrosh <ooo@electrozaur.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target')
0 files changed, 0 insertions, 0 deletions