From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 2F636530A for ; Fri, 15 Jul 2016 17:32:03 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id o80so35021875wme.1 for ; Fri, 15 Jul 2016 08:32:03 -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=E1xPGJOyC/NvtmXJHiZaLtR/WKugwa7Efdc+sQ3KnVA=; b=VCwScKVmaur+dIfi/dg0po/9MMtPKzJhwsEnjcbtIsBUy1Gs2WnaPyYUtRbBs8O85D 7jy16ZwBKDPPaPHx30VWN3AT6Yg0A2/9M2JeejHPCeNe091T9IiZ0jTdokvBZH5G0W/b Fu7ef4hxHjYa7YsepeNaB9ZyJ2jv5QgGjPAi1JXmfHEToNG6YGIxHL902+aaFRileTYU hybhpEn6mweVKZDYXgLnum73Z8axm2s0iOUnY3uzznfkNzHm4fXpoDbkv6nuSRpll0Ot tEcL4mI/l+CreMX/llDZ3T5n677UjjEbNxY0jHfL/AA9Nu6uoJjUhvAYpFVZEQPS0jtX yr6A== 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=E1xPGJOyC/NvtmXJHiZaLtR/WKugwa7Efdc+sQ3KnVA=; b=T09UTUa/lp+HjPgvXGQ0UErDerNfMzIIqF+YdPOVWbuoFBUm5eE9MpHc2nESs/pv1d Mvq+NHmgb5e6UPqogL6N/wnzPsEG7yyZ0Ylz25ieOTRfpU4v7ni2FHPGVXViMIWl92hz BPbnPHWy1gG5QXu6x7MJm5GV06FTYo/W3/I0183JQOTWmvUc/H11Feim7W7d5SWNW6HD oHFnqLLIcA8Divxui19FV/elGiIijvhzEgBuE/o7Tx1sXfBb4/vhWgH96eNc2yMYEOXG ly2QJ4rCAoAsMj/LJ0aALp6sWJuqYZwaLut0de5mcttMyhMk9r95kTXouh71gUI6aN+x 7SCA== X-Gm-Message-State: ALyK8tI0JzIa7J+8VNsfddSmzviHnj+/0f4lQDYmQML6IxB5JOBgwKk60pBYxxsvh9y82cok X-Received: by 10.28.218.71 with SMTP id r68mr43274942wmg.48.1468596723013; Fri, 15 Jul 2016 08:32:03 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id e8sm1287085wjl.26.2016.07.15.08.32.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jul 2016 08:32:02 -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 17:32:01 +0200 Message-ID: <6504660.SWBHcg24lf@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1468541710-47751-1-git-send-email-yongwang@vmware.com> References: <20160714153415.GA8329@gmail.com> <1468541710-47751-1-git-send-email-yongwang@vmware.com> 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 15:32:03 -0000 2016-07-14 17:15, Yong Wang: > -=09=09=09=09void *second_addr =3D RTE_PTR_ADD(bar_addr, memreg[1].of= fset); > +=09=09=09=09void *second_addr =3D RTE_PTR_ADD(bar_addr, > +=09=09=09=09=09=09=09=09memreg[1].offset - reg.offset); 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