[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bcbbdc13-9b04-45b3-a1fc-20a4bf589850@embeddedor.com>
Date: Mon, 8 Sep 2025 20:30:58 +0200
From: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
To: John Garry <john.g.garry@...cle.com>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Jack Wang <jinpu.wang@...ud.ionos.com>,
"James E.J. Bottomley" <James.Bottomley@...senpartnership.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>
Cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH v2][next] scsi: pm80xx: Avoid
-Wflex-array-member-not-at-end warnings
On 9/5/25 09:05, John Garry wrote:
> On 04/09/2025 15:54, Gustavo A. R. Silva wrote:
>> Remove unused field residual_count in a couple of structures,
>> and with this, fix the following -Wflex-array-member-not-at-end
>> warnings:
>>
>> drivers/scsi/pm8001/pm8001_hwi.h:342:33: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-
>> not-at-end]
>> drivers/scsi/pm8001/pm80xx_hwi.h:561:32: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-
>> not-at-end]
>>
>> Signed-off-by: Gustavo A. R. Silva <gustavoars@...nel.org>
>
> Personally I think that it would be better to comment-out the residual_count member, so that future developers can know about this field and why it is not there.
I agree. I'll send v3.
>
> Anyway,
>
> Reviewed-by: John Garry <john.g.garry@...cle.com>
Thanks!
-Gustavo
Powered by blists - more mailing lists