From mboxrd@z Thu Jan 1 00:00:00 1970 From: Panu Matilainen Subject: Re: [PATCH] qede: fix build with gcc >= 6.0 Date: Wed, 18 May 2016 10:29:24 +0300 Message-ID: <73e6394f-bfce-ce24-7d1b-93f07d2b1e0f@redhat.com> References: <1831204.vI4CoI6YQS@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" To: Rasesh Mody , Thomas Monjalon Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 4AB046932 for ; Wed, 18 May 2016 09:29:27 +0200 (CEST) In-Reply-To: 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" On 05/14/2016 04:06 AM, Rasesh Mody wrote: >> From: Thomas Monjalon [mailto:thomas.monjalon@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 >> [...] >>> +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. Hmm, so the base driver in qede is not holy and untouchable? That's good news of course. I simply assumed it was by the tell-tale signs of having a "base driver" in the first place, and like with those other untouchable base-drivers there were many warning-disablers present already. - Panu -