]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cxgb4: Avoid a -Wflex-array-member-not-at-end warning
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 4 Feb 2025 02:54:31 +0000 (13:24 +1030)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Feb 2025 02:16:30 +0000 (18:16 -0800)
commit863257c29fe9c882b21fe5d1596081ef55c4875a
tree5564878b2d13b45e19a8091677048b6c936d3bd1
parentd9e9f6d7b7d0c520bb87f19d2cbc57aeeb2091d5
cxgb4: Avoid a -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 to the end of the structure. Notice
that `struct ethtool_dump` is a flexible structure --a structure that
contains a flexible-array member.

Fix the following warning:
./drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:1215:29: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]

Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://patch.msgid.link/Z6GBZ4brXYffLkt_@kspp
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h