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 89ECBA04B6 for ; Mon, 11 Nov 2019 11:34:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6519F29C6; Mon, 11 Nov 2019 11:34:46 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 5FE76CF3; Mon, 11 Nov 2019 11:34:43 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A31AE1FB; Mon, 11 Nov 2019 02:34:42 -0800 (PST) Received: from phil-VirtualBox.shanghai.arm.com (phil-VirtualBox.shanghai.arm.com [10.169.107.145]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 86E7D3F71A; Mon, 11 Nov 2019 02:34:39 -0800 (PST) From: Phil Yang To: dev@dpdk.org Cc: thomas@monjalon.net, david.marchand@redhat.com, jerinj@marvell.com, Honnappa.Nagarahalli@arm.com, gavin.hu@arm.com, joyce.kong@arm.com, nd@arm.com, stable@dpdk.org Date: Mon, 11 Nov 2019 18:34:20 +0800 Message-Id: <1573468461-25972-1-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-stable] [PATCH 1/2] mk: fix unsupported flag error on armhf architercture 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 older version (e.g. version 7.4.0 ) of GNU C compiler for the armhf architecture doesn't support the flag '-Wno-address-of-packed-member', so remove this flag for aarch32. Fixes: a385972c3675 ("mk: disable warning for packed member pointer") Cc: stable@dpdk.org Signed-off-by: Phil Yang Reviewed-by: Gavin Hu Tested-by: Joyce Kong --- 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 9fc7041..ec0cbbf 100644 --- a/mk/toolchain/gcc/rte.vars.mk +++ b/mk/toolchain/gcc/rte.vars.mk @@ -100,7 +100,9 @@ WERROR_FLAGS += -Wno-format-truncation endif # disable packed member unalign warnings +ifneq ($(CONFIG_RTE_ARCH_ARM), y) WERROR_FLAGS += -Wno-address-of-packed-member +endif export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS -- 2.7.4