diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2025-02-04 13:24:31 +1030 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-02-05 18:16:30 -0800 |
commit | 863257c29fe9c882b21fe5d1596081ef55c4875a (patch) | |
tree | 5564878b2d13b45e19a8091677048b6c936d3bd1 /scripts/generate_rust_analyzer.py | |
parent | d9e9f6d7b7d0c520bb87f19d2cbc57aeeb2091d5 (diff) |
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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions