From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E715DA0562; Wed, 14 Apr 2021 16:16:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D446C161B50; Wed, 14 Apr 2021 16:16:07 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 7D15A161B4B for ; Wed, 14 Apr 2021 16:16:06 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 65469A0A02; Wed, 14 Apr 2021 16:16:06 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 14 Apr 2021 14:16:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kevuzaj@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc dependson target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 678] ice build warnings on Fedora 34 with gcc11 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D678 Bug ID: 678 Summary: ice build warnings on Fedora 34 with gcc11 Product: DPDK Version: unspecified Hardware: All OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: kevuzaj@gmail.com CC: alialnu@nvidia.com, david.marchand@redhat.com, kevuzaj@gmail.com, konstantin.ananyev@intel.com Depends on: 673 Target Milestone: --- +++ This bug was initially created as a clone of Bug #673 +++ https://bugs.dpdk.org/show_bug.cgi?id=3D673#c2 describes ice build failures= on Fedora35. These are also present on Fedora 34 Beta. [kevin@fedora ~]$ cat /etc/redhat-release=20 Fedora release 34 (Thirty Four) [kevin@fedora ~]$ uname -a Linux fedora 5.11.13-300.fc34.x86_64 #1 SMP Sun Apr 11 15:07:42 UTC 2021 x8= 6_64 x86_64 x86_64 GNU/Linux [kevin@fedora ~]$ gcc --version gcc (GCC) 11.0.1 20210324 (Red Hat 11.0.1-0) [1447/2712] Compiling C object drivers/net/ice/base/libice_base.a.p/ice_switch.c.o In file included from ../drivers/net/ice/base/ice_osdep.h:20, from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_switch.c: In function =E2=80=98ice_create_pkt_f= wd_rule=E2=80=99: ../drivers/net/ice/base/ice_switch.c:3998:35: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[32]=E2=80=99 [-Warray-bounds] 3998 | LE16_TO_CPU(s_rule->pdata.lkup_tx_rx.index); | ^~ ../lib/librte_eal/x86/include/rte_byteorder.h:81:30: note: in definition of macro =E2=80=98rte_le_to_cpu_16=E2=80=99 81 | #define rte_le_to_cpu_16(x) (x) | ^ ../drivers/net/ice/base/ice_switch.c:3998:17: note: in expansion of macro =E2=80=98LE16_TO_CPU=E2=80=99 3998 | LE16_TO_CPU(s_rule->pdata.lkup_tx_rx.index); | ^~~~~~~~~~~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 32 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3969:17: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3969 | ice_malloc(hw, ICE_SW_RULE_RX_TX_ETH_HDR_SIZE); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c: In function =E2=80=98ice_update_pkt_f= wd_rule=E2=80=99: ../drivers/net/ice/base/ice_switch.c:3610:22: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[32]=E2=80=99 [-Warray-bounds] 3610 | s_rule->type =3D (f_info->flag & ICE_FLTR_RX) ? In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 32 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:4027:17: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 4027 | ice_malloc(hw, ICE_SW_RULE_RX_TX_ETH_HDR_SIZE); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3615:44: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[32]=E2=80=99 [-Warray-bounds] 3615 | s_rule->pdata.lkup_tx_rx.recipe_id =3D CPU_TO_LE16(f_info->lkup_type); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 32 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:4027:17: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 4027 | ice_malloc(hw, ICE_SW_RULE_RX_TX_ETH_HDR_SIZE); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3616:38: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[32]=E2=80=99 [-Warray-bounds] 3616 | s_rule->pdata.lkup_tx_rx.src =3D CPU_TO_LE16(f_info->src); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 32 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:4027:17: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 4027 | ice_malloc(hw, ICE_SW_RULE_RX_TX_ETH_HDR_SIZE); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3617:38: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[32]=E2=80=99 [-Warray-bounds] 3617 | s_rule->pdata.lkup_tx_rx.act =3D CPU_TO_LE32(act); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 32 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:4027:17: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 4027 | ice_malloc(hw, ICE_SW_RULE_RX_TX_ETH_HDR_SIZE); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:4033:15: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[32]=E2=80=99 [-Warray-bounds] 4033 | s_rule->pdata.lkup_tx_rx.index =3D CPU_TO_LE16(f_info->fltr_rule_id); | ^~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 32 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:4027:17: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 4027 | ice_malloc(hw, ICE_SW_RULE_RX_TX_ETH_HDR_SIZE); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c: In function =E2=80=98ice_add_marker_a= ct=E2=80=99: ../drivers/net/ice/base/ice_switch.c:3679:15: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[52]=E2=80=99 [-Warray-bounds] 3679 | lg_act->type =3D CPU_TO_LE16(ICE_AQC_SW_RULES_T_LG_ACT); | ^~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 52 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3672:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3672 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3680:15: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[52]=E2=80=99 [-Warray-bounds] 3680 | lg_act->pdata.lg_act.index =3D CPU_TO_LE16(l_id); | ^~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 52 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3672:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3672 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3681:15: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[52]=E2=80=99 [-Warray-bounds] 3681 | lg_act->pdata.lg_act.size =3D CPU_TO_LE16(num_lg_acts); | ^~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 52 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3672:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3672 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3693:15: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[52]=E2=80=99 [-Warray-bounds] 3693 | lg_act->pdata.lg_act.act[0] =3D CPU_TO_LE32(act); | ^~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 52 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3672:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3672 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3699:15: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[52]=E2=80=99 [-Warray-bounds] 3699 | lg_act->pdata.lg_act.act[1] =3D CPU_TO_LE32(act); | ^~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 52 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3672:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3672 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3709:15: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[52]=E2=80=99 [-Warray-bounds] 3709 | lg_act->pdata.lg_act.act[2] =3D CPU_TO_LE32(act); | ^~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 52 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3672:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3672 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3610:22: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[52]=E2=80=99 [-Warray-bounds] 3610 | s_rule->type =3D (f_info->flag & ICE_FLTR_RX) ? In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 52 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3672:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3672 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3615:44: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[52]=E2=80=99 [-Warray-bounds] 3615 | s_rule->pdata.lkup_tx_rx.recipe_id =3D CPU_TO_LE16(f_info->lkup_type); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 52 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3672:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3672 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3616:38: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[52]=E2=80=99 [-Warray-bounds] 3616 | s_rule->pdata.lkup_tx_rx.src =3D CPU_TO_LE16(f_info->src); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 52 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3672:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3672 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3617:38: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[52]=E2=80=99 [-Warray-bounds] 3617 | s_rule->pdata.lkup_tx_rx.act =3D CPU_TO_LE32(act); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 52 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3672:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3672 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3716:14: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[52]=E2=80=99 [-Warray-bounds] 3716 | rx_tx->pdata.lkup_tx_rx.act =3D | ^~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 52 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3672:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3672 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3725:14: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[52]=E2=80=99 [-Warray-bounds] 3725 | rx_tx->pdata.lkup_tx_rx.index =3D | ^~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 52 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3672:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3672 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c: In function =E2=80=98ice_update_vsi_list_rule.constprop=E2=80=99: ../drivers/net/ice/base/ice_switch.c:3910:47: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[10]=E2=80=99 [-Warray-bounds] 3910 | s_rule->pdata.vsi_list.vsi[i] =3D In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 10 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3901:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3901 | s_rule =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, s_rule_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3914:22: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[10]=E2=80=99 [-Warray-bounds] 3914 | s_rule->type =3D CPU_TO_LE16(rule_type); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 10 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3901:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3901 | s_rule =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, s_rule_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3915:43: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[10]=E2=80=99 [-Warray-bounds] 3915 | s_rule->pdata.vsi_list.number_vsi =3D CPU_TO_LE16(num_vsi); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 10 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3901:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3901 | s_rule =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, s_rule_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3916:38: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[10]=E2=80=99 [-Warray-bounds] 3916 | s_rule->pdata.vsi_list.index =3D CPU_TO_LE16(vsi_list_id); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 10 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3901:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3901 | s_rule =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, s_rule_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c: In function =E2=80=98ice_remove_rule_= internal=E2=80=99: ../drivers/net/ice/base/ice_switch.c:3517:46: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[16]=E2=80=99 [-Warray-bounds] 3517 | s_rule->pdata.lkup_tx_rx.act =3D 0; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 16 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:4504:25: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 4504 | ice_malloc(hw, ICE_SW_RULE_RX_TX_NO_HDR_SIZ= E); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3518:48: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[16]=E2=80=99 [-Warray-bounds] 3518 | s_rule->pdata.lkup_tx_rx.index =3D In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 16 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:4504:25: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 4504 | ice_malloc(hw, ICE_SW_RULE_RX_TX_NO_HDR_SIZ= E); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3520:50: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[16]=E2=80=99 [-Warray-bounds] 3520 | s_rule->pdata.lkup_tx_rx.hdr_len =3D 0; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 16 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:4504:25: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 4504 | ice_malloc(hw, ICE_SW_RULE_RX_TX_NO_HDR_SIZ= E); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c: In function =E2=80=98ice_create_vsi_l= ist_rule=E2=80=99: ../drivers/net/ice/base/ice_switch.c:3914:22: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[12]=E2=80=99 [-Warray-bounds] 3914 | s_rule->type =3D CPU_TO_LE16(rule_type); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size between 10 and 12 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3901:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3901 | s_rule =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, s_rule_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3915:43: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[12]=E2=80=99 [-Warray-bounds] 3915 | s_rule->pdata.vsi_list.number_vsi =3D CPU_TO_LE16(num_vsi); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size between 10 and 12 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3901:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3901 | s_rule =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, s_rule_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3916:38: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[12]=E2=80=99 [-Warray-bounds] 3916 | s_rule->pdata.vsi_list.index =3D CPU_TO_LE16(vsi_list_id); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size between 10 and 12 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3901:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3901 | s_rule =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, s_rule_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3910:47: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[12]=E2=80=99 [-Warray-bounds] 3910 | s_rule->pdata.vsi_list.vsi[i] =3D In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size between 10 and 12 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3901:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3901 | s_rule =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, s_rule_size); | ^~~~~~~~~~ In file included from ../drivers/net/ice/base/ice_osdep.h:20, from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_switch.c: In function =E2=80=98ice_cfg_dflt_vsi= =E2=80=99: ../drivers/net/ice/base/ice_switch.c:5270:47: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[32]=E2=80=99 [-Warray-bounds] 5270 | u16 index =3D LE16_TO_CPU(s_rule->pdata.lkup_tx_rx.index); | ^~ ../lib/librte_eal/x86/include/rte_byteorder.h:81:30: note: in definition of macro =E2=80=98rte_le_to_cpu_16=E2=80=99 81 | #define rte_le_to_cpu_16(x) (x) | ^ ../drivers/net/ice/base/ice_switch.c:5270:29: note: in expansion of macro =E2=80=98LE16_TO_CPU=E2=80=99 5270 | u16 index =3D LE16_TO_CPU(s_rule->pdata.lkup_tx_rx.index); | ^~~~~~~~~~~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size between 16 and 32 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:5234:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 5234 | s_rule =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, s_rule_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c: In function =E2=80=98ice_add_mac_with= _counter=E2=80=99: ../drivers/net/ice/base/ice_switch.c:3778:22: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[48]=E2=80=99 [-Warray-bounds] 3778 | lg_act->type =3D CPU_TO_LE16(ICE_AQC_SW_RULES_T_LG_ACT); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 48 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3771:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3771 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3779:36: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[48]=E2=80=99 [-Warray-bounds] 3779 | lg_act->pdata.lg_act.index =3D CPU_TO_LE16(l_id); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 48 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3771:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3771 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3780:35: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[48]=E2=80=99 [-Warray-bounds] 3780 | lg_act->pdata.lg_act.size =3D CPU_TO_LE16(num_acts); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 48 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3771:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3771 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3793:37: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[48]=E2=80=99 [-Warray-bounds] 3793 | lg_act->pdata.lg_act.act[0] =3D CPU_TO_LE32(act); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 48 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3771:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3771 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3799:37: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[48]=E2=80=99 [-Warray-bounds] 3799 | lg_act->pdata.lg_act.act[1] =3D CPU_TO_LE32(act); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 48 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3771:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3771 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3807:37: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[48]=E2=80=99 [-Warray-bounds] 3807 | rx_tx->pdata.lkup_tx_rx.act =3D CPU_TO_LE32(act); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 48 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3771:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3771 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3814:39: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[48]=E2=80=99 [-Warray-bounds] 3814 | rx_tx->pdata.lkup_tx_rx.index =3D CPU_TO_LE16(f_rule_id); In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 48 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3771:50: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 3771 | lg_act =3D (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c: In function =E2=80=98ice_rem_adv_rule= =E2=80=99: ../drivers/net/ice/base/ice_switch.c:8803:23: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[16]=E2=80=99 [-Warray-bounds] 8803 | s_rule->pdata.lkup_tx_rx.act =3D 0; | ^~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 16 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:8800:25: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 8800 | ice_malloc(hw, rule_buf_sz); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:8804:23: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[16]=E2=80=99 [-Warray-bounds] 8804 | s_rule->pdata.lkup_tx_rx.index =3D | ^~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 16 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:8800:25: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 8800 | ice_malloc(hw, rule_buf_sz); | ^~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:8806:23: warning: array subscript =E2= =80=98struct ice_aqc_sw_rules_elem[0]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[16]=E2=80=99 [-Warray-bounds] 8806 | s_rule->pdata.lkup_tx_rx.hdr_len =3D 0; | ^~ In file included from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of = size 16 allocated by =E2=80=98rte_zmalloc=E2=80=99 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:8800:25: note: in expansion of macro =E2=80=98ice_malloc=E2=80=99 8800 | ice_malloc(hw, rule_buf_sz); | ^~~~~~~~~~ Referenced Bugs: https://bugs.dpdk.org/show_bug.cgi?id=3D673 [Bug 673] acl build failures on Fedora 35 with gcc 11 --=20 You are receiving this mail because: You are the assignee for the bug.=