cxgbe: fix build with icc
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 1 Jul 2015 15:11:37 +0000 (16:11 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 1 Jul 2015 21:09:54 +0000 (23:09 +0200)
commitefa8a43e392c1bdea4a128a62dfbe2861bfbe3a6
treebe1ce5d37f1ca9c671c3ec062fd5355cc6b5be71
parent6ffefc4c8fe0f8dc3ee88aa43e062c4167a27b47
cxgbe: fix build with icc

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 <bruce.richardson@intel.com>
drivers/net/cxgbe/Makefile
drivers/net/cxgbe/cxgbe_main.c
drivers/net/cxgbe/sge.c