From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] cxgbe: fix compilation using icc Date: Wed, 01 Jul 2015 23:11:47 +0200 Message-ID: <1495970.aR90hZ0ccm@xps13> References: <1435763497-7264-1-git-send-email-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Bruce Richardson Return-path: Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id C3527567C for ; Wed, 1 Jul 2015 23:12:56 +0200 (CEST) Received: by wgjx7 with SMTP id x7so46988318wgj.2 for ; Wed, 01 Jul 2015 14:12:56 -0700 (PDT) In-Reply-To: <1435763497-7264-1-git-send-email-bruce.richardson@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-07-01 16:11, Bruce Richardson: > When compiling the cxgbe driver with icc, multiple errors about using > enums as integers appear across a number of files, including in the base > code and in the DPDK-specific driver code. > > .../drivers/net/cxgbe/cxgbe_main.c(386): error #188: enumerated type mixed > with another type > t4_get_port_type_description(pi->port_type)); > ^ > For the errors in the base driver code we use the CFLAGS_BASE_DRIVER > approach used by other drivers to disable warnings. > > For errors in the DPDK-specific code, typecasts are used to fix the > errors in the code itself. > > Signed-off-by: Bruce Richardson Applied, thanks