From: Panu Matilainen Date: Tue, 10 May 2016 10:01:25 +0000 (+0300) Subject: qede: fix build with gcc 6 X-Git-Tag: spdx-start~6925 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=84740d785c1c0511dc6b88196f8783b3ca3d2c69;p=dpdk.git qede: fix build with gcc 6 With gcc >= 6.0, qede base driver fails to build with: drivers/net/qede/base/ecore_cxt.c: In function 'ecore_cdu_init_common': cc1: error: left shift of negative value [-Werror=shift-negative-value] Since the base drivers are untouchable, work around by disabling the warning. Fixes: ec94dbc57362 ("qede: add base driver") Signed-off-by: Panu Matilainen --- diff --git a/drivers/net/qede/Makefile b/drivers/net/qede/Makefile index d0c1361167..4cc9ee86cc 100644 --- a/drivers/net/qede/Makefile +++ b/drivers/net/qede/Makefile @@ -50,6 +50,9 @@ CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable CFLAGS_BASE_DRIVER += -Wno-missing-declarations CFLAGS_BASE_DRIVER += -Wno-maybe-uninitialized CFLAGS_BASE_DRIVER += -Wno-strict-prototypes +ifeq ($(shell test $(GCC_VERSION) -ge 60 && echo 1), 1) +CFLAGS_BASE_DRIVER += -Wno-shift-negative-value +endif else ifeq ($(CC), clang) CFLAGS_BASE_DRIVER += -Wno-format-extra-args CFLAGS_BASE_DRIVER += -Wno-visibility