Re: [PATCH] s390/vfio-ap: Replace one-element array with flexible array member

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 30/01/25 07:08, Halil Pasic wrote:
On Thu, 16 Jan 2025 14:18:59 +0100
Thorsten Blum <thorsten.blum@xxxxxxxxx> wrote:

Replace the deprecated one-element array with a modern flexible array
member in the struct ap_matrix_dev.


I'm not sure I understand the value of this. What we have here is not
a flexible array but a one element array. Something that in the generic
case could be many but particularly for vfio-ap is always one.

You are correct. Only fake flexible arrays should be transformed into
C99 flex-array members [1].

Thanks
-Gustavo

[1] https://lwn.net/Articles/908817/




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux