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 82C96A0093 for ; Mon, 18 May 2020 13:50:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 789301C435; Mon, 18 May 2020 13:50:29 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 3C0A41C435 for ; Mon, 18 May 2020 13:50:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589802627; 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=VVoSYTkdHnuLWs/Sj62SmhJHnE8slEV+6jCUskKNAqKF2YkKihFRf9p179S9AFTYSicbML wcQYK1ZVOBo2F2Y5/p+W5fRLTJVKeARQmmq//gX0USlAEo6jbIDZEWLLm9qCnLd35IKzre ZoPAALy07L+RJiToT6cPQm4d6lG5r40= Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-312-KnHCQ13hM8ukyxXMdTcd4w-1; Mon, 18 May 2020 07:50:26 -0400 X-MC-Unique: KnHCQ13hM8ukyxXMdTcd4w-1 Received: by mail-ua1-f70.google.com with SMTP id d8so3371123uap.21 for ; Mon, 18 May 2020 04:50:25 -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=YZgl6AJfAMfXY/uIm+YevRLlC8nEGuo+IcHajpLtxdXyo5Pu58Ud3w5LoI9D7G5rCi eEw52MBP14LvcnprhCSCcPe+Aw5/T3BQWuqTtAcfM+o+J6+oWBpgipecDu5dUftQcG+2 K2zp3l17jUaw9O6vk/VY5/Jg5qZXBS6J5cBzlnpOt9+tJpGVWHgdCm2BJNZdJi3eZW4e Wb6wE/vnTnhvk4M7f6DxxSACpo0FSAFCFZwMsyJw6chPY99ks3JnD8TYNjGQabHkgQHn /5hgQIbNfu9pMmSViZrdIRRP3KbH/JBRt3to0s6OistOUx85KYmTRGWXG8St3wiG0L2Y DZ3Q== X-Gm-Message-State: AOAM531IsHQ+prYJ/wtEvzANNiXIK73sXBfnM22nbb7Wi3EVSz4lWuZ5 4flcsT+d0HKqNQLugJMh4812Miok5XOxd3LaBMS7QnjgaPds2gaO2G/BY9YHc1AvYjlNHYFP6VC tvCMX1sO3tG713zY2uoMUE70= X-Received: by 2002:a1f:8cc3:: with SMTP id o186mr10081441vkd.18.1589802625592; 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-stable] [PATCH] build: disable gcc 10 zero-length-bounds warning X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "stable" 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