Re: [PATCH][next] block: scsi_ioctl: Avoid the use of one-element arrays

From: Christoph Hellwig
Date: Mon Oct 05 2020 - 03:26:02 EST


On Fri, Oct 02, 2020 at 06:10:33PM -0500, Gustavo A. R. Silva wrote:
> 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.

They are only deprecated when abused as variable length array. That is
not the case here.