[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <85863d7a-2d8b-4c1b-b76a-e2f40834a7a8@embeddedor.com>
Date: Thu, 30 Jan 2025 10:30:30 +1030
From: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
To: Halil Pasic <pasic@...ux.ibm.com>, Thorsten Blum <thorsten.blum@...ux.dev>
Cc: Tony Krowiak <akrowiak@...ux.ibm.com>, Jason Herne
<jjherne@...ux.ibm.com>, Harald Freudenberger <freude@...ux.ibm.com>,
Holger Dengler <dengler@...ux.ibm.com>, Heiko Carstens <hca@...ux.ibm.com>,
Vasily Gorbik <gor@...ux.ibm.com>, Alexander Gordeev
<agordeev@...ux.ibm.com>, Christian Borntraeger <borntraeger@...ux.ibm.com>,
Sven Schnelle <svens@...ux.ibm.com>, linux-hardening@...r.kernel.org,
linux-s390@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] s390/vfio-ap: Replace one-element array with flexible
array member
On 30/01/25 07:08, Halil Pasic wrote:
> On Thu, 16 Jan 2025 14:18:59 +0100
> Thorsten Blum <thorsten.blum@...ux.dev> 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/
Powered by blists - more mailing lists