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 05798A00C5 for ; Wed, 3 Aug 2022 12:13:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 00E7740A7E; Wed, 3 Aug 2022 12:13:56 +0200 (CEST) Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by mails.dpdk.org (Postfix) with ESMTP id 6616040141 for ; Wed, 3 Aug 2022 12:13:55 +0200 (CEST) Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 2F4D43F146 for ; Wed, 3 Aug 2022 10:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1659521635; bh=GJBuEtkeKKU4pV84vutxnggjLXCGOh1bFcKSYvV+kso=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VYkVIq4G0PhgzyQucDynr9xTbiaqP5wyX5VyDmEDKJxpqSt7IhFrYOEwt4GK1GVXR kHXqt440V2CCIyRqFYpQfsr0ZTuUjFqIvhnwtBcXxMVZWF5+QX/M2mbE1cONeNSYaP g9n1VVzADpiNZn5bCWfC67SR6ZoSD/QxYcKbnIM9w6qV70oU7WTDJIPyejdutP4Okk CoEOHfkOj2+iXv8o+hWaYKbswi99qY5AQJ/iljlkbhvzP8nDacYJZncMBvQQu7FmnH yHYZeqaKnHM2KCy2uZr7zCEF2APxkpPcmba6bN1jxLxQ1t1MX6rH76BxQ0eA+Fid1o 7TUUp0lfCiq+A== Received: by mail-lj1-f198.google.com with SMTP id bd2-20020a05651c168200b0025dcd868408so4058576ljb.2 for ; Wed, 03 Aug 2022 03:13:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=GJBuEtkeKKU4pV84vutxnggjLXCGOh1bFcKSYvV+kso=; b=ybctH7fRCnactOGn91NPfHd9gHErJ9DdWbn3iCsd2oOKPHJpKZumTehD6HfNdC4JnJ M//0IU7QbA7n+VyPmCT80UeNb5emiWB4H01tut1EmprIf3CKqEn+arI2DgtXjJcpJSCX slQmXbbuIneHBUcT1XnkfDl96+/eWfKc3D3Rf8Z+oSeIXx71zbLBcJ8wGRc9EkErzwWm IP0z7CdbNm6ImpnrnU7R8HVXQwGzsoSLkV6CMaUoHdVIs18rWwoJh7QdOtj+MS7h8ZwQ MJEk7WSp1+xC720WCd4t0abNn7eOVaiNbb+S2rOoX0x8puXqFvyj99V9jE6lyEpup2Ni ah6g== X-Gm-Message-State: AJIora9lfqIhH9NoHHwfSwSFOtk25kZcUabZvGPEptekLdhZeDgLJEUX U6TBirQxA+ajyROaBn2WEW6lQntov82s9emyynweMIa5UDThZJ6+P4JcVkUHaWtT9C3CtrNUoZw TSLe/eSpc4NUJ7rziQY/28/Nz+u+LUrkOGXP9JZoN X-Received: by 2002:a05:651c:1581:b0:255:48d1:fdae with SMTP id h1-20020a05651c158100b0025548d1fdaemr7920611ljq.286.1659521634115; Wed, 03 Aug 2022 03:13:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1syN3pKwogklX2cPq2XEW4Tx6tNinZr/kGzv2V/Xw+q1BMxoK/KtdYzuY6r0DkyaXMHcVl3c0TB+5kZvvBS82s= X-Received: by 2002:a05:651c:1581:b0:255:48d1:fdae with SMTP id h1-20020a05651c158100b0025548d1fdaemr7920609ljq.286.1659521633907; Wed, 03 Aug 2022 03:13:53 -0700 (PDT) MIME-Version: 1.0 References: <20220803061245.158114-1-stevex.yang@intel.com> In-Reply-To: <20220803061245.158114-1-stevex.yang@intel.com> From: Christian Ehrhardt Date: Wed, 3 Aug 2022 12:13:28 +0200 Message-ID: Subject: Re: [PATCH 19.11] net/ice: fix meson build error with gcc11.2 To: Steve Yang Cc: stable@dpdk.org, qiming.yang@intel.com, qi.z.zhang@intel.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Wed, Aug 3, 2022 at 8:23 AM Steve Yang wrote: > > When user built latest DPDK 19.11 with gcc11.2, got error message as belo= w: Thank you for the help keeping the old releases buildable. This is queued now, it depends if we will have a -rc2 if it will be in 19.11.13 or 19.11.14. > ../drivers/net/ice/ice_rxtx.c:1365:18: error: array subscript > =E2=80=98volatile struct ice_32b_rx_flex_desc_comms[0]=E2=80=99 is partly= outside array > bounds of =E2=80=98union ice_16b_rx_flex_desc[1]=E2=80=99 [-Werror=3Darra= y-bounds] > 1365 | stat_err =3D rte_le_to_cpu_16(desc->status_error0); > ../drivers/net/ice/ice_rxtx.c:2090:32: note: while referencing =E2=80=98r= xd=E2=80=99 > 2090 | union ice_rx_flex_desc rxd; > | ^~~ > In file included from ../lib/librte_mbuf/rte_mbuf.h:43, > from ../lib/librte_net/rte_ether.h:23, > from ../lib/librte_ethdev/rte_ethdev.h:159, > from ../lib/librte_ethdev/rte_ethdev_driver.h:18, > from ../drivers/net/ice/ice_rxtx.c:5: > cc1: all warnings being treated as errors > > Because the 'desc->status_error0' belongs to 'ice_16b_rx_flex_desc[0]', > it cannot be outside array bounds, so, this warning should be skipped > with gcc option '-Wno-array-bounds' for gcc11.2. > > Bugzilla ID: 1055 > Fixes: dbf3c0e77a22 ("net/ice: handle Rx flex descriptor") > > Signed-off-by: Steve Yang > --- > drivers/net/ice/meson.build | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/ice/meson.build b/drivers/net/ice/meson.build > index f9e897bbc2..3c62ed7306 100644 > --- a/drivers/net/ice/meson.build > +++ b/drivers/net/ice/meson.build > @@ -18,6 +18,10 @@ sources =3D files( > deps +=3D ['hash'] > includes +=3D include_directories('base') > > +if (toolchain =3D=3D 'gcc' and cc.version().version_compare('>=3D11.0.0'= )) > + cflags +=3D '-Wno-array-bounds' > +endif > + > if arch_subdir =3D=3D 'x86' > sources +=3D files('ice_rxtx_vec_sse.c') > > -- > 2.25.1 > --=20 Christian Ehrhardt Senior Staff Engineer, Ubuntu Server Canonical Ltd