diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-10-03 01:10:33 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-03 01:58:52 +0200 |
commit | f5ace5ef37b1e1de49882248656f35c45e041585 (patch) | |
tree | 196851df93305c1d8483f09437dd4eb36688bee7 /samples | |
parent | rsxx: Use fallthrough pseudo-keyword (diff) | |
download | linux-f5ace5ef37b1e1de49882248656f35c45e041585.tar.xz linux-f5ace5ef37b1e1de49882248656f35c45e041585.zip |
block: scsi_ioctl: Avoid the use of one-element arrays
One-element arrays are being deprecated[1]. Replace the one-element array
with a simple object of type compat_caddr_t: 'compat_caddr_t unused'[2],
once it seems this field is actually never used.
Also, update struct cdrom_generic_command in UAPI by adding an
anonimous union to avoid using the one-element array _reserved_.
[1] https://www.kernel.org/doc/html/v5.9-rc1/process/deprecated.html#zero-length-and-one-element-arrays
[2] https://github.com/KSPP/linux/issues/86
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/lkml/5f76f5d0.qJ4t%2FHWuRzSW7bTa%25lkp@intel.com/
Build-tested-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions