From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id CA04A4AC7 for ; Fri, 15 Jul 2016 18:56:25 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id o80so38001631wme.1 for ; Fri, 15 Jul 2016 09:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=apfhL5N5K5C6LXSK4DM4giL19F2SadTJzuMFaQaWwnM=; b=Dr22CZHSYCglXq7p2AG7hoBsBkL0kIS4etIk40x8XXRqucnIuRhsno3MsGAQlIHzvM 54c/HOy9HmkUfF55ahIIF8Ke/jVqM6z2u6LJDA36z7xwCft2Fue6vuw9SWoHmc5YCKi5 pFNYv1qsmqIGQ5sAKuyvn9PhkcxzLZa2qaqt1a0TR/rbN0aDsVbqp/5/GyVRPToegKEw ZE+TZ595lPP/X8Z1JHde+/69dxJ0XRYNQ5ANc82pGXXlKCTclKZCrOk3tzNyP+vrVBKA HuZgYCzAjkkH+vInMs8W3W5B8CWOQODyQW+4vC+Xp8Kg85b0m53kKnNAxYyDIp44/lpr ACxQ== 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:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=apfhL5N5K5C6LXSK4DM4giL19F2SadTJzuMFaQaWwnM=; b=ju6oo6gT5alxPOCQXjp80ByYS0P3m3bceixFcOEyXRrQ9x7vYJ7AWYkxKJ16chtMHt KZt8BfjBtD7kxupRowa2kEMzBzMKIJb1x9I4UEL363lINRePcV9kiNN7BzdmKrWP7bjr aCrXVjILoLk6hfqMO1SA8eT3wwsSmykT+gClY0mlkEsb9Kc5OYcOZZZQdTWYppFGcy7a dDBEUGH9mf3vm543aVwsOVgcqh9v0RnIIYxnAjSw3xDWsztFOELCm1whHyj5PVO6S6JM 7UZ8Fs/DhshfX+YrGR0qPMD22qIm64xBWX5jv+FvaBVn7WFPE1dhpU3MsGcmOVKjBY37 i7DQ== X-Gm-Message-State: ALyK8tLVy+LiDRdNztBomYHcEr5sjDZDXLwZyUMJ9b7NLVaEmRfDwjR7WW4oqDbgAZK4wngx X-Received: by 10.28.47.199 with SMTP id v190mr7443504wmv.28.1468601785594; Fri, 15 Jul 2016 09:56:25 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id gk2sm1617125wjb.16.2016.07.15.09.56.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jul 2016 09:56:25 -0700 (PDT) From: Thomas Monjalon To: Yong Wang Cc: dev@dpdk.org, anatoly.burakov@intel.com, dan@kernelim.com, Ronghua Zhang Date: Fri, 15 Jul 2016 18:56:24 +0200 Message-ID: <2054704.Nkh3RPcrvj@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <2113476.6KVZGvHTNJ@xps13> References: <20160714153415.GA8329@gmail.com> <6504660.SWBHcg24lf@xps13> <2113476.6KVZGvHTNJ@xps13> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Subject: Re: [dpdk-dev] [PATCH v2] vfio: fix pci_vfio_map_resource 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: Fri, 15 Jul 2016 16:56:25 -0000 2016-07-15 18:42, Thomas Monjalon: > 2016-07-15 17:32, Thomas Monjalon: > > 2016-07-14 17:15, Yong Wang: > > > -=09=09=09=09void *second_addr =3D RTE_PTR_ADD(bar_addr, memreg[1= ].offset); > > > +=09=09=09=09void *second_addr =3D RTE_PTR_ADD(bar_addr, > > > +=09=09=09=09=09=09=09=09memreg[1].offset - reg.offset); > >=20 > > There is an error for 32-bit: > > =09error: cast to pointer from integer of different size > > =09note: in expansion of macro =E2=80=98RTE_PTR_ADD=E2=80=99 >=20 > It can fixed like this: > - memreg[1].offset - reg.offset); > + memreg[1].offset - > + (uintptr_t)reg.offset); >=20 Applied with above change, thanks