[dpdk-dev] [PATCH] qede: fix build with gcc >= 6.0

Rasesh Mody rasesh.mody at qlogic.com
Sat May 14 03:06:58 CEST 2016


> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> Sent: Friday, May 13, 2016 8:38 AM
> 
> 2016-05-10 13:01, Panu Matilainen:
> > 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.
> 
> Are the qede base driver files untouchable?
> 
> > Signed-off-by: Panu Matilainen <pmatilai at redhat.com>
> [...]
> > +ifeq ($(shell test $(GCC_VERSION) -ge 60 && echo 1), 1)
> > +CFLAGS_BASE_DRIVER += -Wno-shift-negative-value endif
> 
> Fixes: ec94dbc57362 ("qede: add base driver")
> 
> Applied, thanks
> 
> Rasesh, would you mind to fix the base driver and remove this workaround?

Sure Thomas! Will look into this.


More information about the dev mailing list