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 CE1D5A00C2 for ; Thu, 6 Oct 2022 11:27:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C84E642BCC; Thu, 6 Oct 2022 11:27:43 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 8E0DD42BC2; Thu, 6 Oct 2022 11:27:42 +0200 (CEST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 488EE5C0100; Thu, 6 Oct 2022 05:27:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 06 Oct 2022 05:27:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1665048462; x= 1665134862; bh=mYtae2Seg6+v1wawPAp6UMJ4at1N03JYeUxvHIs01kY=; b=r wynjM89cib+crskvDVXbRJrS5eQPcHWixRsqKB2UA52+ydNzNGZZxp3bEVC9DpZk CXTCUAinBIODrVsy1SOmPCr0LGOxzafi5kScvslfSDPz+di9N+NpzOJ3N8VbYJJd ymPRtUyB+XYLQfhzVepVVdws6Ogkq7BT9SzpCIcXVz8gMR9YzA+VslgVgS30eijF RQPsjBPPaNd3Ddzb2MO2sKw1AMf2kwstgoyg+r8iOhfHENn6YHv6OxgFKo67j2ca bOd9PhOG8OL9+zuAioJuyBp7hQshsj+cJu5blLvOFhyNR8QteE/5mThUhX7uG1Ww /K3bkDOYwNcPpKIcrxzPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1665048462; x= 1665134862; bh=mYtae2Seg6+v1wawPAp6UMJ4at1N03JYeUxvHIs01kY=; b=b RdliENVHTs63YuNTEhxHqq8LRBemtHSH+Pw2xbyaQvT6FZ68ZlCKh35yOfwkoeJy SwGBvF/C4vuJMU3oan5VEO2TpHF3xkLRRR/OGpOVzBfZvOAOqBIwK8hmyXYu4J/w EY19dPR6TuOzWadphUVRVJYFPO4gkvlfHrSMfhrKbfzm09wzonJ3SuOBfY6Xr+Hi xf9abKsHJqJdk7LNaNhz05OUmqYPej1ILb1oI7WJwZrPCBjGiFWyR99nwSyEL0f/ NFavHRiJu93pVBthy+mdFld0+7NkylHg/wHQLptOGZnmbpPJo94LeLT81ksgwz87 /EmNi91n6MFmhd9j6oj9w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeihedgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedtjeeiieefhedtfffgvdelteeufeefheeujefgueetfedttdei kefgkeduhedtgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Oct 2022 05:27:41 -0400 (EDT) From: Thomas Monjalon To: Amit Prakash Shukla Cc: Ruifeng Wang , dev@dpdk.org, jerinj@marvell.com, stable@dpdk.org, gakhil@marvell.com, stephen@networkplumber.org, Rahul Bhansali Subject: Re: [PATCH v2] examples: compilation fix for GCC-12 Date: Thu, 06 Oct 2022 11:27:39 +0200 Message-ID: <1737703.VLH7GnMWUR@thomas> In-Reply-To: <20220902074337.3129786-1-amitprakashs@marvell.com> References: <20220901082343.3074804-1-amitprakashs@marvell.com> <20220902074337.3129786-1-amitprakashs@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org 02/09/2022 09:43, Amit Prakash Shukla: > GCC-12 warns when a pointer of type union points to an array of same > defined size, as union internally gets paded with pad bytes. > > ../examples/common/neon/port_group.h:42:21: error: array subscript > 'union [0]' is partly outside array bounds of > 'uint16_t[5]' {aka 'short unsigned int[5]'} > [-Werror=array-bounds] > 42 | pnum->u64 = gptbl[v].pnum; > | ^~ > ../examples/common/neon/port_group.h:21:23: note: object 'pn' of > size [0, 10] > 21 | port_groupx4(uint16_t pn[FWDSTEP + 1], uint16_t *lp, uint16x8_t dp1 > | ~~~~~~~~~^~~~~~~~~~~~~~~ > ../examples/common/neon/port_group.h:43:21: error: array subscript > 'union [0]' is partly outside array bounds of > 'uint16_t[5]' {aka 'short unsigned int[5]'} [-Werror=array-bounds] > 43 | pnum->u16[FWDSTEP] = 1; > | ^~ > > Fixes: bdfc3816fbfc ("examples: common packet group functionality") Should be: Fixes: 732115ce38c6 ("examples/l3fwd: move packet group function in common") > Cc: stable@dpdk.org > > Signed-off-by: Amit Prakash Shukla Applied, thanks.