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 A1FEDA00C2; Thu, 6 Oct 2022 12:27:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9541D42BF0; Thu, 6 Oct 2022 12:27:50 +0200 (CEST) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by mails.dpdk.org (Postfix) with ESMTP id C3E9C42B70 for ; Thu, 6 Oct 2022 12:27:49 +0200 (CEST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A677E3200936; Thu, 6 Oct 2022 06:27:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 06 Oct 2022 06:27:49 -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=1665052068; x= 1665138468; bh=Ej3s3tU9ko4J4WGWHbQ39EYS0zK1Idf9BiXDiVUuMzM=; b=U RsxADU6CqMlwfUnImwC4nRQzW0RJNNzCLndfQXsJ4++38VtWAIhisC3or6yq6Aim ec3/LZA8ryBijGSjGmHHnhG5cgApD+1wZzmxh2GVy88Hu5fmUs11mjHxp5fSnO7b uGSNbSIpgisWYWvNiovKZdpgtGShC2z6HjayzJZ740ASy9Ohk8gYBZcCPiqlowZO oiYQSTifttLfftq7AAmJEHs14neuoh/gz1T8It0HjaYHk/4NU0sPgjOdCcLIbvAg O7aHT4AWhJ6r714IBQIZU76FM3QXaZDiHMx4t6VCZ2QKxIrpFfcn6c7lC8jP7cjT wUytyWVsZelwUme/tpU6g== 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=1665052068; x= 1665138468; bh=Ej3s3tU9ko4J4WGWHbQ39EYS0zK1Idf9BiXDiVUuMzM=; b=r 5zuptqc3yEGFxhfvCkYArn8rsgvtUGkpXPsQBqJcV6kcPMGf0YMB9dnFQwr54kcJ dF4XfvcTMizHuEdvkFxXJBnNZTftKlPgYiSOXQsnhdNu0fsiwhMdiq8JfyLyku1l YLgcPh5L5P71qXE9K23E/o/RpP1uV9RiIC7qxsr0Mkl2OO1EG4szH16v4osaPTZR QUKMbiq6KDTkGtw+TUodeV9d1WSveMfA/8N/TzJ9s7v5g+QxVUBqJJNK/+HrkbVM sV4DBe8OwF63+AR5Lw5uWAL0KdAUupDA90AfCauRdEyNO+52LDbUVHLtFBj02AEx HBDjUm9r9WVvrHIBG2pOg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeihedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthhqredttddtjeenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpeegtddtleejjeegffekkeektdejvedtheevtdekiedvueeuvdei uddvleevjeeujeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Oct 2022 06:27:47 -0400 (EDT) From: Thomas Monjalon To: Yuying Zhang , Beilei Xing , amitprakashs@marvell.com Cc: dev@dpdk.org Subject: Re: [PATCH] net/i40e: fix build with MinGW GCC 12 Date: Thu, 06 Oct 2022 12:27:46 +0200 Message-ID: <2127972.Icojqenx9y@thomas> In-Reply-To: <2673690.9PvXe5no7K@thomas> References: <20221004111742.1497105-1-thomas@monjalon.net> <2673690.9PvXe5no7K@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 04/10/2022 13:21, Thomas Monjalon: > 04/10/2022 13:17, Thomas Monjalon: > > When compiling with MinGW GCC 12, > > the rte_flow_item array is seen as read out of bound: > >=20 > > net/i40e/i40e_hash.c:389:47: error: > > array subscript 50 is above array bounds of =E2=80=98const uint64_t[50= ]=E2=80=99 > > {aka =E2=80=98const long long unsigned int[50]=E2=80=99} [-Werror=3Dar= ray-bounds] > > 389 | item_hdr =3D pattern_item_header[last_item_type]; > > | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ > >=20 > > It seems the assert check done above this line has no impact. > > A check is added to make the compiler happy. >=20 > We could add those lines as the real issue is the item array: >=20 > Fixes: ef4c16fd9148 ("net/i40e: refactor RSS flow") > Cc: stable@dpdk.org >=20 > > Signed-off-by: Thomas Monjalon A similar patch was sent 6 weeks ago by Amit Prakash Shukla.