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 13A90A00C4 for ; Thu, 13 Jan 2022 08:57:57 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F31C040150; Thu, 13 Jan 2022 08:57:56 +0100 (CET) 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 9C40940150 for ; Thu, 13 Jan 2022 08:57:56 +0100 (CET) Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (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 B64603F1EC for ; Thu, 13 Jan 2022 07:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642060674; bh=0YmPaOcH0X1osOx5uP53d93snKUL6fq8Y67N1oFGQA8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=lPNdRRHJLc7zUlD9209wE8qvkCVjZne4FdPJdBS/GNcNY7Ei/7aqQ+d/TYZE+6Bsd aaxcLfHtjWCWvCK2QPD1V7vEHkkLf3q6m/I+nexMp87SbDZaoKEyMLNae/BURAWPES gnsLlE6LVWyk29z1V6ZvQl0S0k6tytloYcqAuiQCjkcJXJBTw0shXR6JwF6ShTEnsi Vn/zu0p4mzFEDT3/+/6VNGGIBZoeyYb61qWuAkPExcn9uOaoJ1SOm4e0b4+F3FXzh3 x4poILQox+XJgrE3ghBarkPJtoxqZJlLA4t00QXqkKjOz2fSwaG4bz4UWLYTW2BQDW w9GjYkUi4L0Qg== Received: by mail-qt1-f197.google.com with SMTP id g16-20020ac85810000000b002b212f2662aso4342831qtg.20 for ; Wed, 12 Jan 2022 23:57:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=0YmPaOcH0X1osOx5uP53d93snKUL6fq8Y67N1oFGQA8=; b=rdY9UfAG4Fxp1uvWdkD62jYfz6f7ezl6gzsBVGa+Nz3RRp/XEQohYitfBBXgy37gWp +KlexqyLF1exkOXEYClitgJzuCzarn2+CK8v/9GIAvXAVCaN3Lfexm8rKAgyU5B3Ohtd tRVhq+bJzLVrceE5Jur2RdxCse8OPHXAkmFWZTYl5bJ9as9cnpqej2cT6INPgulRhdSA 6GzrwBtXbhp80yZ3CUu2vPkAu+FAwKTh9BqL6CKepKdNA/C4pOkGOdkgq3X7jcoPzsal IP7ignAFEwk3jlz27u6LOe+du38HgNzC/M8AvNYWX3jOzU8CxYZaCwJsRF3/+0mhpbMP IneA== X-Gm-Message-State: AOAM533D8jUVW8rGGHmwW/LHSMBTlog2w7dOT5stEjGppA7QHChnEEud wT2fAgcHRaLDc7uhQ4drSGmUBi8eMV4Ziac5DWy4qEwhQ/g1qdGnvFk8RnbXsbrkfhmchVVhfLI cNhi1tWyMD8YBNS6AAnsw3qD08mpBrF1EqCGzyKmE X-Received: by 2002:a05:6214:c4f:: with SMTP id r15mr2911129qvj.87.1642060673722; Wed, 12 Jan 2022 23:57:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+xzrst9RSMcqQV1qukE06U1E/AU5OmjRBszUTxFx2NoGTAiH2nZ9FfX916jhHhkA/2zDwnHwTi97tqP7ts/Y= X-Received: by 2002:a05:6214:c4f:: with SMTP id r15mr2911120qvj.87.1642060673557; Wed, 12 Jan 2022 23:57:53 -0800 (PST) MIME-Version: 1.0 References: <20220112064505.2182485-1-stevex.yang@intel.com> In-Reply-To: <20220112064505.2182485-1-stevex.yang@intel.com> From: Christian Ehrhardt Date: Thu, 13 Jan 2022 08:57:27 +0100 Message-ID: Subject: Re: [PATCH 19.11] net/ice: build failure with make and GCC > 11 To: Steve Yang Cc: stable@dpdk.org, haiyue.wang@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, Jan 12, 2022 at 7:50 AM Steve Yang wrote: > > Since GCC version is greater than 11.1.1, the '-finline-functions' > option perhaps causes '-Werror=3Dmaybe-uninitialized' issue. > > Check the gcc version, and enable '-Wno-maybe-uninitialized', > otherwise it will have "error: =E2=80=98r_bitmap=E2=80=99 may be used uni= nitialized". Indeed the extended inlining might cause more detection of an issue like th= is. Just disabling that warning for ICE will not make it worse, although unless= that detection is a false positive if there is a real fix to it avoiding the dangerous situation that would be even better. For now I have queued the patch for 19.11.12 > Bugzilla ID: 744 > > Signed-off-by: Steve Yang > --- > drivers/net/ice/Makefile | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/ice/Makefile b/drivers/net/ice/Makefile > index 6c4d155268..07044d6ed7 100644 > --- a/drivers/net/ice/Makefile > +++ b/drivers/net/ice/Makefile > @@ -34,6 +34,10 @@ ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1= ) > CFLAGS_BASE_DRIVER +=3D -Wno-unused-but-set-variable > endif > > +ifeq ($(shell test $(GCC_VERSION) -ge 110 && echo 1), 1) > +CFLAGS_BASE_DRIVER +=3D -Wno-maybe-uninitialized > +endif > + > endif > OBJS_BASE_DRIVER=3D$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base= /*.c))) > $(foreach obj, $(OBJS_BASE_DRIVER), $(eval CFLAGS_$(obj)+=3D$(CFLAGS_BAS= E_DRIVER))) > -- > 2.27.0 > --=20 Christian Ehrhardt Staff Engineer, Ubuntu Server Canonical Ltd