From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=ibuWtxs0pyH/XkfHqieWNtoHin4+vbHR+vGQFGd3yn8=; b=hVyQ7x3Ese7eympU+QBmuegcMEXrnB3AO1la/MNoK2rB5BBBrib14PUZ+6m/fzsBRI wl3zrIB1xJyNcMNN2pDNLrTd3LIDqaoUvsQrXzpQx3Con0xvRxnSfojg2RIO4gN1lScm FNgJYWy3RTuEE78N1xPfYPQehJxA3452bnOXrZdmACQ0PCbyoWJf60itDI31D9A/J27U vwHSB6DYm+HCiNbtIkR66hLBk2Y1BzFQ9KybKLPEtw1pYOmzpZp5/OegPgwo5+zdCgo+ 09zSIT8WKM8QMyLYmBAm9trkWjgmX/HazdIryePoe/LLvsBvDre5gm/6HHV/vWsjoGs5 Kl/A== X-Gm-Message-State: ALoCoQnx5WkNOMWr+ZoZR1LXZEueFmnosszvXyORpfNgiZGvJoag9SmYljoo065LOE+cwrJ6Sjji X-Received: by 10.194.110.100 with SMTP id hz4mr34904474wjb.6.1438617160063; Mon, 03 Aug 2015 08:52:40 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id r19sm14225244wib.7.2015.08.03.08.52.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 08:52:39 -0700 (PDT) From: Thomas Monjalon To: Stephen Hemminger Date: Mon, 03 Aug 2015 17:51:25 +0200 Message-ID: <34280323.NGXaHzjUp7@xps13> Organization: 6WIND User-Agent: KMail/4.14.8 (Linux/4.0.4-2-ARCH; KDE/4.14.8; x86_64; ; ) In-Reply-To: <1438263693-24165-1-git-send-email-thomas.monjalon@6wind.com> References: <1438263693-24165-1-git-send-email-thomas.monjalon@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] pci: fix build on FreeBSD 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: Mon, 03 Aug 2015 15:52:40 -0000 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