The basic build tests fail in many ways. The driver was disabled by error in first test before applying it. That's why it has been accepted.
This is a first try to fix most of the errors. It has not been tested with old compilers, nor icc. The 32-bit build fix is not complete. Please review it and send other patches to completely fix it ASAP. Thomas Monjalon (4): bnx2x: fix build as shared library bnx2x: fix build with debug enabled bnx2x: fix build with clang bnx2x: fix part of 32-bit build drivers/net/bnx2x/Makefile | 4 +++ drivers/net/bnx2x/bnx2x.c | 79 +++++++++++++++++++++-------------------- drivers/net/bnx2x/bnx2x.h | 2 +- drivers/net/bnx2x/bnx2x_logs.h | 2 +- drivers/net/bnx2x/bnx2x_stats.c | 12 ------- drivers/net/bnx2x/ecore_init.h | 3 +- drivers/net/bnx2x/ecore_sp.c | 12 +++---- 7 files changed, 52 insertions(+), 62 deletions(-) -- 2.4.2