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 60884A0533; Fri, 24 Jan 2020 16:40:52 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6018F397D; Fri, 24 Jan 2020 16:40:48 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id BEAE23977 for ; Fri, 24 Jan 2020 16:40:46 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jan 2020 07:40:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,358,1574150400"; d="scan'208";a="400689116" Received: from silpixa00383876.ir.intel.com (HELO silpixa00383876.ger.corp.intel.com) ([10.237.222.110]) by orsmga005.jf.intel.com with ESMTP; 24 Jan 2020 07:40:45 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , jerinj@marvell.com Date: Fri, 24 Jan 2020 15:37:54 +0000 Message-Id: <20200124153755.13939-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200124153755.13939-1-bruce.richardson@intel.com> References: <20200124153755.13939-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/2] net/octeontx2: check compiler flag before use 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" Rather than assuming all compilers support the -flax-vector-extensions flag, we should test this before using it, thereby potentially avoiding warnings. Cc: jerinj@marvell.com Signed-off-by: Bruce Richardson --- drivers/net/octeontx2/meson.build | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/octeontx2/meson.build b/drivers/net/octeontx2/meson.build index fad3076a3..bde19678f 100644 --- a/drivers/net/octeontx2/meson.build +++ b/drivers/net/octeontx2/meson.build @@ -26,9 +26,7 @@ sources = files('otx2_rx.c', deps += ['bus_pci', 'common_octeontx2', 'mempool_octeontx2'] -cflags += ['-flax-vector-conversions'] - -extra_flags = [] +extra_flags = ['-flax-vector-conversions'] # This integrated controller runs only on a arm64 machine, remove 32bit warnings if not dpdk_conf.get('RTE_ARCH_64') extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast'] -- 2.20.1