Skip to content

Commit 77ef0d7

Browse files
author
Izabela Bakollari
committed
net: atlantic: Avoid -Wflex-array-member-not-at-end warnings
JIRA: https://issues.redhat.com/browse/RHEL-105363 commit 33b565f Author: Gustavo A. R. Silva <gustavoars@kernel.org> Date: Tue Feb 4 12:40:49 2025 +1030 net: atlantic: Avoid -Wflex-array-member-not-at-end warnings -Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. Remove unused flexible-array member `buf` and, with this, fix the following warnings: drivers/net/ethernet/aquantia/atlantic/aq_hw.h:197:36: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/ethernet/aquantia/atlantic/hw_atl/../aq_hw.h:197:36: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] Suggested-by: Igor Russkikh <irusskikh@marvell.com> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Igor Russkikh <irusskikh@marvell.com> Link: https://patch.msgid.link/Z6F3KZVfnAZ2FoJm@kspp Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Izabela Bakollari <ibakolla@redhat.com>
1 parent b6059c3 commit 77ef0d7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ struct __packed offload_info {
226226
struct offload_port_info ports;
227227
struct offload_ka_info kas;
228228
struct offload_rr_info rrs;
229-
u8 buf[];
230229
};
231230

232231
struct __packed hw_atl_utils_fw_rpc {

0 commit comments

Comments
 (0)