From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BED3EA0093; Mon, 18 May 2020 13:50:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9C6B11D408; Mon, 18 May 2020 13:50:31 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 59DFB1D408 for ; Mon, 18 May 2020 13:50:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589802629; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HArLA7PFQbRqWiCosmsx2rJL9eUDfLr3hEWw9Oo+sQc=; b=EDKyvy8LSi5yzo3Paek6gF+gpYQFfez7FGeII/qwjtA/xMalNq63wMejPunwHluP98TC+O 7pPyUr4OOXG9jTKkyO6hZZUbdDCs/A1DJz9XW41ZrjrFUitt5JmepwZvK1D8UCrKh0PELx fZ+J0sg1bbpCC0i8QvKmxktTOonUJWc= Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-369-6qpBs93vN1KsIZTBe8ANhw-1; Mon, 18 May 2020 07:50:26 -0400 X-MC-Unique: 6qpBs93vN1KsIZTBe8ANhw-1 Received: by mail-ua1-f71.google.com with SMTP id g28so3390650uaf.15 for ; Mon, 18 May 2020 04:50:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=HArLA7PFQbRqWiCosmsx2rJL9eUDfLr3hEWw9Oo+sQc=; b=rqNqxci8ulhn+NtmKdauh9AjPvdSe/sAerJ9nai1//qCb8pHV0K0PwBKr2E31VfoqI v989lqyvHtCLxNqmmXmlNRMTIdpgnYEJL2BuJ9ZPd8MjMaNoV5pj7QlD1kDLNkUg0wr9 Zje4VWXtHKX99NXGAKP/21VXsl2o2k4xpr+52XgYNYOkYkrDfR2f8JWOjmSQMHoemvzT BacTz0oUC2IO0PGkr6J34RjOergIlVpHjHy6A8Xl+PfyBsNG0fjyuM4ZEamK1dbAN+Sg 8C51LeS4vEChGaVa6lhpsJAqs63VD9UkDu9mpyZHCDziEbMUhZARHhH/cKcbtEgfDzkU FNjA== X-Gm-Message-State: AOAM530DNOcDP5Jd9dZdSEYnDY7xthdcKClKOs5gCVE7Ft1wCajN/JJh oZwn/qVsmgW0tbSw5EtxS8xRn45QIBPIEUwo7dLStf+nIkBMtwhEL/bTyv2H8AARrJmJ7P+N3sp CeYLUccizd+yMJ0eLY00= X-Received: by 2002:a1f:8cc3:: with SMTP id o186mr10081435vkd.18.1589802625590; Mon, 18 May 2020 04:50:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUrUVlIrLxc5Un3h5Mq0KcZAyRgDkHe4ekLjR0CTFJ/3HQmQrvhfF1xOS5fBAMON+9a4g5ZEWM+6t1s0EyBSc= X-Received: by 2002:a1f:8cc3:: with SMTP id o186mr10081428vkd.18.1589802625262; Mon, 18 May 2020 04:50:25 -0700 (PDT) MIME-Version: 1.0 References: <20200514131857.11966-1-ktraynor@redhat.com> In-Reply-To: From: David Marchand Date: Mon, 18 May 2020 13:50:14 +0200 Message-ID: To: Kevin Traynor Cc: dev , Thomas Monjalon , Bruce Richardson , "Yigit, Ferruh" , Gavin Hu , Honnappa Nagarahalli , Olivier Matz , dpdk stable X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH] build: disable gcc 10 zero-length-bounds warning X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" On Fri, May 15, 2020 at 10:28 AM David Marchand wrote: > On Thu, May 14, 2020 at 3:19 PM Kevin Traynor wrote= : > > > > gcc 10 issues warnings about the use of rearm_data marker > > from struct rte_mbuf. > > > > e.g. > > ../drivers/net/enic/enic_rxtx_vec_avx2.c: In function =E2=80=98rx_one= =E2=80=99: > > ../drivers/net/enic/enic_rxtx_vec_avx2.c:21:2: > > warning: > > array subscript 0 is outside the bounds of an interior zero-length arra= y > > =E2=80=98RTE_MARKER64=E2=80=99 {aka =E2=80=98long unsigned int[0]=E2=80= =99} [-Wzero-length-bounds] > > 21 | *(uint64_t *)&mb->rearm_data =3D enic->mbuf_initializer; > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > In file included from ../lib/librte_mbuf/rte_mbuf.h:45, > > from ../drivers/net/enic/enic_rxtx_vec_avx2.c:6: > > ../lib/librte_mbuf/rte_mbuf_core.h:484:15: > > note: while referencing =E2=80=98rearm_data=E2=80=99 > > 484 | RTE_MARKER64 rearm_data; > > | > > > > Disable this warning for gcc 10 in order to allow v20.05 to build > > without changes to struct rte_mbuf. > > > > Bugzilla ID: 396 > > Cc: stable@dpdk.org > > > > Signed-off-by: Kevin Traynor > Reviewed-by: David Marchand Applied, thanks. --=20 David Marchand