lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq13498feqz.fsf@ca-mkp.ca.oracle.com>
Date: Sat, 30 Aug 2025 21:43:02 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: "Gustavo A. R. Silva" <gustavoars@...nel.org>
Cc: Justin Tee <justin.tee@...adcom.com>,
        James Smart
 <james.smart@...adcom.com>,
        Dick Kennedy <dick.kennedy@...adcom.com>,
        "James E.J. Bottomley" <James.Bottomley@...senpartnership.com>,
        "Martin
 K. Petersen" <martin.petersen@...cle.com>,
        Hannes Reinecke
 <hare@...e.de>, linux-scsi@...r.kernel.org,
        linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH v2] scsi: fc: Avoid -Wflex-array-member-not-at-end warnings


Gustavo,

> -Wflex-array-member-not-at-end has been introduced in GCC-14, and we
> are getting ready to enable it, globally.
>
> So, in order to avoid ending up with a flexible-array member in the
> middle of multiple other structs, we use the `__struct_group()` helper
> to create a new tagged `struct fc_df_desc_fpin_reg_hdr`. This
> structure groups together all the members of the flexible `struct
> fc_df_desc_fpin_reg` except the flexible array.

Applied to 6.18/scsi-staging, thanks!

-- 
Martin K. Petersen

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ