From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 985EEC003406; Wed, 18 May 2016 07:29:26 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-5-221.ams2.redhat.com [10.36.5.221]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u4I7TOgL024586; Wed, 18 May 2016 03:29:25 -0400 To: Rasesh Mody , Thomas Monjalon References: <1831204.vI4CoI6YQS@xps13> Cc: "dev@dpdk.org" From: Panu Matilainen Message-ID: <73e6394f-bfce-ce24-7d1b-93f07d2b1e0f@redhat.com> Date: Wed, 18 May 2016 10:29:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 18 May 2016 07:29:26 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH] qede: fix build with gcc >= 6.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2016 07:29:27 -0000 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 -