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 C2750A034D for ; Wed, 12 Jan 2022 07:50:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87FA640141; Wed, 12 Jan 2022 07:50:12 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id B2A0240141 for ; Wed, 12 Jan 2022 07:50:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641970211; x=1673506211; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=WdfI9FUaiW5JSRMQyEFMt59dBLqK3XXwIt2HvnjDAf4=; b=M//H4M2TIV/6qOvpyoqfS6nxpymVsShs59F1gCiRq+L0GYTTr8rnXwhG 8O8BiTPK/UIqq8f6mhBZgltyIVec3k+kkY7R6zel2Dqkvdzc5lTFdpw6n hAdNquMw0OKZ+k290O88TGHej2xmHhfSJ/SQf3UxVbK6maE5pCKFIjqq8 VW+CDC/nK/cTmzlKm2LBQNKWAUVwLxhUzq14X5OtXtusaSbFVrPWKWKE0 gHmb27Zlhvb/tHzSplN9Hs0OPa7ELGhg3QfPQrgkkVbXoX116yQMokNBN k+7Y5HpNVJqkt9Exmzdh0u1IE4+VwC0NRuXU2D25x2utg/Mp1whOu57A3 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10224"; a="243872888" X-IronPort-AV: E=Sophos;i="5.88,282,1635231600"; d="scan'208";a="243872888" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2022 22:50:07 -0800 X-IronPort-AV: E=Sophos;i="5.88,282,1635231600"; d="scan'208";a="474810739" Received: from intel-cd-odc-steve.cd.intel.com ([10.240.178.182]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2022 22:50:05 -0800 From: Steve Yang To: stable@dpdk.org Cc: haiyue.wang@intel.com, Steve Yang Subject: [PATCH 19.11] net/ice: build failure with make and GCC > 11 Date: Wed, 12 Jan 2022 06:45:05 +0000 Message-Id: <20220112064505.2182485-1-stevex.yang@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Since GCC version is greater than 11.1.1, the '-finline-functions' option perhaps causes '-Werror=maybe-uninitialized' issue. Check the gcc version, and enable '-Wno-maybe-uninitialized', otherwise it will have "error: ‘r_bitmap’ may be used uninitialized". 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 += -Wno-unused-but-set-variable endif +ifeq ($(shell test $(GCC_VERSION) -ge 110 && echo 1), 1) +CFLAGS_BASE_DRIVER += -Wno-maybe-uninitialized +endif + endif OBJS_BASE_DRIVER=$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))) $(foreach obj, $(OBJS_BASE_DRIVER), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER))) -- 2.27.0