From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH] pci: fix bsd build with gcc Date: Tue, 4 Aug 2015 16:05:36 +0100 Message-ID: <20150804150535.GA7340@bricha3-MOBL3> References: <1438698465-27834-1-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Thomas Monjalon Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id B88B55937 for ; Tue, 4 Aug 2015 17:05:42 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1438698465-27834-1-git-send-email-thomas.monjalon@6wind.com> 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 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