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 6FA74A0C42; Thu, 17 Jun 2021 20:32:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 39C8F4067A; Thu, 17 Jun 2021 20:32:41 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 0F2B240150 for ; Thu, 17 Jun 2021 20:32:40 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id EEE13A0C4A; Thu, 17 Jun 2021 20:32:39 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 17 Jun 2021 18:32:39 +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: drc@linux.vnet.ibm.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 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 743] Building DPDK with gcc 11.1.1 Generates Multiple Warning Messages in the i40e PMD 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=3D743 Bug ID: 743 Summary: Building DPDK with gcc 11.1.1 Generates Multiple Warning Messages in the i40e PMD Product: DPDK Version: unspecified Hardware: POWER OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: drc@linux.vnet.ibm.com Target Milestone: --- Using Fedora 34 container on ppc64le host with gcc 11. Running the same te= st in a Fedora 34 VM on x86 does not produce an error. [root@ee54008db177 dpdk]# gcc --version gcc (GCC) 11.1.1 20210531 (Red Hat 11.1.1-3) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warning errors generated when building the i40e PMD, even after proposed fi= xes for bug 739 are applied. [root@ee54008db177 dpdk]# ninja -C build ninja: Entering directory `build' [1270/2422] Compiling C object drivers/libtmp_rte_net_i40e.a.p/net_i40e_i40e_flow.c.o In function 'i40e_flow_parse_fdir_pattern', inlined from 'i40e_flow_parse_fdir_filter' at ../drivers/net/i40e/i40e_flow.c:3274:8: ../drivers/net/i40e/i40e_flow.c:3052:69: warning: writing 1 byte into a reg= ion of size 0 [-Wstringop-overflow=3D] 3052 | filter->input.flow_ext.flexbytes[j]= =3D | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~^ 3053 | raw_spec->pattern[i]; | ~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/i40e/i40e_flow.c:25: ../drivers/net/i40e/i40e_flow.c: In function 'i40e_flow_parse_fdir_filter': ../drivers/net/i40e/i40e_ethdev.h:628:17: note: at offset 16 into destinati= on object 'flexbytes' of size 16 628 | uint8_t flexbytes[RTE_ETH_FDIR_MAX_FLEXLEN]; | ^~~~~~~~~ In function 'i40e_flow_parse_fdir_pattern', inlined from 'i40e_flow_parse_fdir_filter' at ../drivers/net/i40e/i40e_flow.c:3274:8: ../drivers/net/i40e/i40e_flow.c:3054:69: warning: writing 1 byte into a reg= ion of size 0 [-Wstringop-overflow=3D] 3054 | filter->input.flow_ext.flex_mask[j]= =3D | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~^ 3055 | raw_mask->pattern[i]; | ~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/i40e/i40e_flow.c:25: ../drivers/net/i40e/i40e_flow.c: In function 'i40e_flow_parse_fdir_filter': ../drivers/net/i40e/i40e_ethdev.h:630:17: note: at offset 16 into destinati= on object 'flex_mask' of size 16 630 | uint8_t flex_mask[I40E_FDIR_MAX_FLEX_LEN]; | ^~~~~~~~~ In function 'i40e_flow_parse_fdir_pattern', inlined from 'i40e_flow_parse_fdir_filter' at ../drivers/net/i40e/i40e_flow.c:3274:8: ../drivers/net/i40e/i40e_flow.c:3052:69: warning: writing 1 byte into a reg= ion of size 0 [-Wstringop-overflow=3D] 3052 | filter->input.flow_ext.flexbytes[j]= =3D | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~^ 3053 | raw_spec->pattern[i]; | ~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/i40e/i40e_flow.c:25: ../drivers/net/i40e/i40e_flow.c: In function 'i40e_flow_parse_fdir_filter': ../drivers/net/i40e/i40e_ethdev.h:628:17: note: at offset [17, 271] into destination object 'flexbytes' of size 16 628 | uint8_t flexbytes[RTE_ETH_FDIR_MAX_FLEXLEN]; | ^~~~~~~~~ In function 'i40e_flow_parse_fdir_pattern', inlined from 'i40e_flow_parse_fdir_filter' at ../drivers/net/i40e/i40e_flow.c:3274:8: ../drivers/net/i40e/i40e_flow.c:3054:69: warning: writing 1 byte into a reg= ion of size 0 [-Wstringop-overflow=3D] 3054 | filter->input.flow_ext.flex_mask[j]= =3D | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~^ 3055 | raw_mask->pattern[i]; | ~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/i40e/i40e_flow.c:25: ../drivers/net/i40e/i40e_flow.c: In function 'i40e_flow_parse_fdir_filter': ../drivers/net/i40e/i40e_ethdev.h:630:17: note: at offset [17, 271] into destination object 'flex_mask' of size 16 630 | uint8_t flex_mask[I40E_FDIR_MAX_FLEX_LEN]; | ^~~~~~~~~ [2422/2422] Linking target app/test/dpdk-test --=20 You are receiving this mail because: You are the assignee for the bug.=