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 F3597A04B1; Thu, 24 Sep 2020 11:32:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D33661DDBB; Thu, 24 Sep 2020 11:32:56 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 56D041DDBA for ; Thu, 24 Sep 2020 11:32:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600939974; 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=ex/SeZu2rtOTIa9W6Dr+28T0CQCfQDXaHOw5KjDeaJw=; b=bnfz78iWOzFA0WKSB7LkmhjN+VJaqwtIhWX8PmiKtmX2VnroJsa0PrXnpsKlmQ1LSlVyJv JB99yAZinUi52wJmlPS6YV6cbKc1I8oeAA4L04O30z0tpz2cbfvS6bG2vM+DUbfxRft8I8 ab57h8D7gNlpRNUWmRlb8AJ6/251EK0= 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-407-Jy-LvGYVM4CQCkW87gUZSQ-1; Thu, 24 Sep 2020 05:32:53 -0400 X-MC-Unique: Jy-LvGYVM4CQCkW87gUZSQ-1 Received: by mail-ua1-f70.google.com with SMTP id y6so660506uay.15 for ; Thu, 24 Sep 2020 02:32:53 -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=ex/SeZu2rtOTIa9W6Dr+28T0CQCfQDXaHOw5KjDeaJw=; b=JxU5DLf8dJtgZKNo96ibJQolobmJB3kzCu420KCBd1e55oESYntdJ3bbywr8IacEYy HCI33YQ67TYeiNKPdKlkbh3F84sU4GOKupspEwTbDXiROBitbqDvZXYfpa6QkgAS/Jnx p7Fql9npxXnM9jdRiOLPpAb1zuYjutNjudZE+94hLjWZ/u7uNksRV5bEEkjWPUohTZh7 cDTOgeZMIHopYPXGonKfjksSlH/mdShtDzagmIqZF1h61Wr2C7Sch8vnFMHkv79LYyak J+uuF7OIw6mElJKq47sZSo0B2QgOBwkI2XpRb8yrqIrGas7SFKjt3NAyssiKFNH2rMja 00TA== X-Gm-Message-State: AOAM532TcJZN4kktllCuPBVF90AevyjWsp8Uu+CU5gweBA5B01uOmobB wVVHFGPLFVorr+4mvRMdeDX4EF1bYsWJguQpToYJaLx5MV9RGK4DXh+NW/in0h4MdQOhTeemB6I zgqRj0QEZ0z6ywd6ti9U= X-Received: by 2002:ab0:7603:: with SMTP id o3mr2148728uap.126.1600939972850; Thu, 24 Sep 2020 02:32:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl8JEOClz+aN/J1b4I+pu1HCp+wt4aOr7PARZsL4QOH+7cszWRY9q3SVYrcV2yate25RUth6t3zAn38ZQZLjk= X-Received: by 2002:ab0:7603:: with SMTP id o3mr2148717uap.126.1600939972577; Thu, 24 Sep 2020 02:32:52 -0700 (PDT) MIME-Version: 1.0 References: <20200921133830.1575872-1-ferruh.yigit@intel.com> <20200921133830.1575872-4-ferruh.yigit@intel.com> In-Reply-To: <20200921133830.1575872-4-ferruh.yigit@intel.com> From: David Marchand Date: Thu, 24 Sep 2020 11:32:41 +0200 Message-ID: To: Ferruh Yigit Cc: Neil Horman , dev Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com 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 4/4] pmdinfogen: fix build with gcc 11 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 Mon, Sep 21, 2020 at 3:39 PM Ferruh Yigit wrote= : > > Error observed with gcc 11 under development > gcc (GCC) 11.0.0 20200920 (experimental) > > build error: > In file included from ../buildtools/pmdinfogen/pmdinfogen.c:17: > ../buildtools/pmdinfogen/pmdinfogen.c: In function =E2=80=98parse_elf=E2= =80=99: > ../buildtools/pmdinfogen/pmdinfogen.h:78:1: > warning: this =E2=80=98else=E2=80=99 clause does not guard... > [-Wmisleading-indentation] > 78 | else \ > | ^~~~ > ../buildtools/pmdinfogen/pmdinfogen.h:83:35: > note: in expansion of macro =E2=80=98CONVERT_NATIVE=E2=80=99 > 83 | #define TO_NATIVE(fend, width, x) CONVERT_NATIVE(fend, width, x) > | ^~~~~~~~~~~~~~ > ../buildtools/pmdinfogen/pmdinfogen.c:152:28: > note: in expansion of macro =E2=80=98TO_NATIVE=E2=80=99 > 152 | hdr->e_type =3D TO_NATIVE(endian, 16, hdr->e_type); > | ^~~~~~~~~ > ../buildtools/pmdinfogen/pmdinfogen.h:80:9: > note: ...this statement, but the latter is misleadingly indented > as if it were guarded by the =E2=80=98else=E2=80=99 > 80 | ___x; \ > | ^~~~ > Fixes: 98b0fdb0ffc6 ("pmdinfogen: add buildtools and pmdinfogen utility") Cc: stable@dpdk.org > Signed-off-by: Ferruh Yigit > --- > buildtools/pmdinfogen/pmdinfogen.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/buildtools/pmdinfogen/pmdinfogen.h b/buildtools/pmdinfogen/p= mdinfogen.h > index 93930e454..38fd3ddcc 100644 > --- a/buildtools/pmdinfogen/pmdinfogen.h > +++ b/buildtools/pmdinfogen/pmdinfogen.h > @@ -77,7 +77,7 @@ if ((fend) =3D=3D ELFDATA2LSB) \ > ___x =3D le##width##toh(x); \ > else \ > ___x =3D be##width##toh(x); \ > - ___x; \ > +___x; \ > }) > > #define TO_NATIVE(fend, width, x) CONVERT_NATIVE(fend, width, x) > -- > 2.26.2 > Reviewed-by: David Marchand --=20 David Marchand