From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <bruce.richardson@intel.com> Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id B88B55937 for <dev@dpdk.org>; Tue, 4 Aug 2015 17:05:42 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 04 Aug 2015 08:05:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,609,1432623600"; d="scan'208";a="776577379" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.208.63]) by fmsmga002.fm.intel.com with SMTP; 04 Aug 2015 08:05:36 -0700 Received: by (sSMTP sendmail emulation); Tue, 04 Aug 2015 16:05:36 +0025 Date: Tue, 4 Aug 2015 16:05:36 +0100 From: Bruce Richardson <bruce.richardson@intel.com> To: Thomas Monjalon <thomas.monjalon@6wind.com> 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 Content-Disposition: inline In-Reply-To: <1438698465-27834-1-git-send-email-thomas.monjalon@6wind.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] pci: fix bsd build with gcc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> X-List-Received-Date: Tue, 04 Aug 2015 15:05:43 -0000 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 <thomas.monjalon@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>