From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] pci: fix bsd build with gcc Date: Tue, 04 Aug 2015 17:10:38 +0200 Message-ID: <14272100.0prZvnSJQv@xps13> References: <1438698465-27834-1-git-send-email-thomas.monjalon@6wind.com> <20150804150535.GA7340@bricha3-MOBL3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Bruce Richardson Return-path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by dpdk.org (Postfix) with ESMTP id 594E57EEF for ; Tue, 4 Aug 2015 17:11:54 +0200 (CEST) Received: by wicgj17 with SMTP id gj17so154942440wic.1 for ; Tue, 04 Aug 2015 08:11:54 -0700 (PDT) In-Reply-To: <20150804150535.GA7340@bricha3-MOBL3> 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" 2015-08-04 16:05, Bruce Richardson: > On Tue, Aug 04, 2015 at 04:27:45PM +0200, Thomas Monjalon wrote: > > GCC 4.8 raises this error: > > lib/librte_eal/bsdapp/eal/eal_pci.c:453:15: error: cast discards > > '__attribute__((const))' qualifier from pointer target type > > .pi_data = *(u_int32_t *)buf, > > ^ > > > > Note: this assignment seems useless because pi_data is filled > > with memset later. > > > > Fixes: 632b2d1deeed ("eal: provide functions to access PCI config") > > > > Signed-off-by: Thomas Monjalon > > Acked-by: Bruce Richardson Applied