From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id EBC766CC3 for ; Tue, 14 Jun 2016 11:51:42 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 14 Jun 2016 02:51:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,470,1459839600"; d="scan'208";a="987065206" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 14 Jun 2016 02:51:39 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u5E9pdVm023974; Tue, 14 Jun 2016 10:51:39 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id u5E9pcuA029047; Tue, 14 Jun 2016 10:51:38 +0100 Received: (from fyigit@localhost) by sivswdev02.ir.intel.com with id u5E9pcQK029043; Tue, 14 Jun 2016 10:51:38 +0100 From: Ferruh Yigit To: dev@dpdk.org Cc: Adrien Mazarguil , Ferruh Yigit Date: Tue, 14 Jun 2016 10:51:37 +0100 Message-Id: <1465897897-29011-1-git-send-email-ferruh.yigit@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] mlx: fix icc compilation error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2016 09:51:43 -0000 Compilation errors: mlx4: CC mlx4.o .../dpdk/drivers/net/mlx4/mlx4.c(5409): error #188: enumerated type mixed with another type priv->intr_handle.type = 0; ^ mlx5: CC em_rxtx.o .../dpdk/drivers/net/mlx5/mlx5_rxq.c(282): error #188: enumerated type mixed with another type enum hash_rxq_type type = 0; ^ .../dpdk/drivers/net/mlx5/mlx5_rxq.c(622): error #188: enumerated type mixed with another type if (!priv_allow_flow_type(priv, i)) { ^ .../dpdk/drivers/net/mlx5/mlx5_rxq.c(623): error #188: enumerated type mixed with another type priv_special_flow_disable(priv, i); ^ .../dpdk/drivers/net/mlx5/mlx5_rxq.c(625): error #188: enumerated type mixed with another type int ret = priv_special_flow_enable(priv, i); ^ Signed-off-by: Ferruh Yigit --- drivers/net/mlx4/Makefile | 4 ++++ drivers/net/mlx5/Makefile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makefile index d2f5692..e46c85b 100644 --- a/drivers/net/mlx4/Makefile +++ b/drivers/net/mlx4/Makefile @@ -58,6 +58,10 @@ CFLAGS += -Wno-error=cast-qual EXPORT_MAP := rte_pmd_mlx4_version.map LIBABIVER := 1 +ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) +CFLAGS += -wd188 #188: enumerated type mixed with another type +endif + # DEBUG which is usually provided on the command-line may enable # CONFIG_RTE_LIBRTE_MLX4_DEBUG. ifeq ($(DEBUG),1) diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index 92bfa07..dd8c425 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -70,6 +70,10 @@ CFLAGS += -Wno-error=cast-qual EXPORT_MAP := rte_pmd_mlx5_version.map LIBABIVER := 1 +ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) +CFLAGS += -wd188 #188: enumerated type mixed with another type +endif + # DEBUG which is usually provided on the command-line may enable # CONFIG_RTE_LIBRTE_MLX5_DEBUG. ifeq ($(DEBUG),1) -- 2.5.5