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 5F0A4A2E1B for ; Mon, 2 Sep 2019 16:43:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 422BC1E9BD; Mon, 2 Sep 2019 16:43:04 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 0C28C1E9BD for ; Mon, 2 Sep 2019 16:43:01 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Sep 2019 07:43:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,459,1559545200"; d="scan'208";a="181891882" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.2]) by fmsmga008.fm.intel.com with ESMTP; 02 Sep 2019 07:43:00 -0700 From: Bruce Richardson To: stable@dpdk.org Cc: xuemingx.zhang@intel.com, Bruce Richardson Date: Mon, 2 Sep 2019 15:42:39 +0100 Message-Id: <20190902144239.11292-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH 17.11] mk: disable warnings for packed mem config data structure 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" The rte_mem_config data structure is marked as packed, but we access members of that structure via pointers in the code. This leads to warnings with later gcc compilers e.g. gcc9, so disable those warnings to allow clean builds. For older GCC versions, which may not have the flag, there is no need to filter it out as adding unrecognised warning disable flags to GCC is always safe [Ref: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html] Signed-off-by: Bruce Richardson --- mk/toolchain/gcc/rte.vars.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk index e7008c052..ec082db99 100644 --- a/mk/toolchain/gcc/rte.vars.mk +++ b/mk/toolchain/gcc/rte.vars.mk @@ -81,6 +81,8 @@ ifeq ($(RTE_DEVEL_BUILD),y) WERROR_FLAGS += -Werror endif +WERROR_FLAGS += -Wno-address-of-packed-member + # There are many issues reported for strict alignment architectures # which are not necessarily fatal. Report as warnings. ifeq ($(CONFIG_RTE_ARCH_STRICT_ALIGN),y) -- 2.21.0