]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: isci: Avoid -Wflex-array-member-not-at-end warning
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 19 Sep 2025 11:24:30 +0000 (13:24 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 20 Oct 2025 16:00:11 +0000 (12:00 -0400)
commit11956e4b912167459ffc51d66f56341a97a94323
treec15470a46e0f7daeeb658066bbc6b9fc31f725b5
parent3a8660878839faadb4f1a6dd72c3179c1df56787
scsi: isci: Avoid -Wflex-array-member-not-at-end warning

-Wflex-array-member-not-at-end was introduced in GCC-14, and we are
getting ready to enable it, globally.

Move the conflicting declaration (which happens to be in a union, so
we're moving the entire union) to the end of the corresponding
structure. Notice that `struct ssp_response_iu` is a flexible structure,
this is a structure that contains a flexible-array member.

With these changes fix the following warning:

drivers/scsi/isci/task.h:92:11: 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@kernel.org>
Link: https://patch.msgid.link/aM09bpl1xj9KZSZl@kspp
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/isci/task.h