3
0
Fork 0
forked from mirrors/linux
kernel/drivers/net/ethernet/chelsio
Gustavo A. R. Silva 863257c29f 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>
2025-02-05 18:16:30 -08:00
..
cxgb cxgb: Remove unused declarations 2024-09-03 13:07:27 +02:00
cxgb3 net: cxgb3: Remove stid deadcode 2024-10-15 16:51:54 -07:00
cxgb4 cxgb4: Avoid a -Wflex-array-member-not-at-end warning 2025-02-05 18:16:30 -08:00
cxgb4vf Revert "net: ethtool: Avoid thousands of -Wflex-array-member-not-at-end warnings" 2024-11-18 18:52:11 -08:00
inline_crypto chelsio/chtls: prevent potential integer overflow on 32bit 2024-12-16 18:08:11 -08:00
libcxgb net/chelsio/libcxgb: Add __percpu annotations to libcxgb_ppm.c 2024-08-06 19:35:40 -07:00
Kconfig
Makefile