From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] pci: fix build on FreeBSD Date: Mon, 03 Aug 2015 17:51:25 +0200 Message-ID: <34280323.NGXaHzjUp7@xps13> References: <1438263693-24165-1-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Stephen Hemminger Return-path: Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by dpdk.org (Postfix) with ESMTP id 3C7D0C3BA for ; Mon, 3 Aug 2015 17:52:40 +0200 (CEST) Received: by wibxm9 with SMTP id xm9so127791315wib.0 for ; Mon, 03 Aug 2015 08:52:40 -0700 (PDT) In-Reply-To: <1438263693-24165-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" 2015-07-30 15:41, Thomas Monjalon: > Build log: > lib/librte_eal/bsdapp/eal/eal_pci.c:462:9: error: > incompatible integer to pointer conversion passing 'u_int32_t' > (aka 'unsigned int') to parameter of type 'void *' > > It is fixed by passing the pointer of pi.pi_data to memcpy. > > By the way, it seems strange that pi_data is initialized twice: > .pi_data = *(u_int32_t *)buf > memcpy(&pi.pi_data, buf, len); > > Signed-off-by: Thomas Monjalon Applied