]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: airoha: Avoid -Wflex-array-member-not-at-end warning
authorGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 22 Sep 2025 14:08:21 +0000 (16:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Sep 2025 23:52:42 +0000 (16:52 -0700)
commit09630ab91d840416b0178f3660afa4eebce24286
tree4366845ebb7a89aaf11f2da3d5b20520e748e1ad
parentb650bf0977d34c52befb31a9fa711534e11b220f
net: airoha: 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 to the end of the corresponding
structure. Notice that `struct airoha_foe_entry` is a flexible
structure, this is a structure that contains a flexible-array
member.

Fix the following warning:

drivers/net/ethernet/airoha/airoha_eth.h:474:33: 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>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/aNFYVYLXQDqm4yxb@kspp
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_eth.h