From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by dpdk.org (Postfix) with ESMTP id 4F4B11BB14 for ; Fri, 8 Jun 2018 18:59:38 +0200 (CEST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id w58GwoXh005246 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 8 Jun 2018 09:59:16 -0700 Received: from ALA-MBC.corp.ad.wrs.com ([169.254.1.176]) by ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) with mapi id 14.03.0399.000; Fri, 8 Jun 2018 09:58:53 -0700 From: "Legacy, Allain" To: "RICHARDSON, BRUCE" , "dev@dpdk.org" CC: "RICHARDSON, BRUCE" Thread-Topic: [PATCH 7/7] net/avp: fix 32-bit meson builds Thread-Index: AQHT/0cxoI+pWeKpHUG+Vj3gbV5F6aRWlRRw Date: Fri, 8 Jun 2018 16:58:52 +0000 Message-ID: <70A7408C6E1BFB41B192A929744D8523BAA6C516@ALA-MBC.corp.ad.wrs.com> References: <20180608163807.66737-1-bruce.richardson@intel.com> <20180608163807.66737-8-bruce.richardson@intel.com> In-Reply-To: <20180608163807.66737-8-bruce.richardson@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.224.140.228] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 7/7] net/avp: fix 32-bit meson builds X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2018 16:59:38 -0000 > -----Original Message----- > From: Bruce Richardson [mailto:bruce.richardson@intel.com] > Sent: Friday, June 08, 2018 12:38 PM > To: dev@dpdk.org > Cc: RICHARDSON, BRUCE; Legacy, Allain > Subject: [PATCH 7/7] net/avp: fix 32-bit meson builds >=20 > When compiling with meson, extra warnings are enabled about casting from > integers to different size pointers. This triggers an error in AVP as the > addition of the offset to the pointer address causes the result to be a 6= 4-bit > integer which doesn't fit a 32-bit pointer. The fix here is to explicitly= indicate > that the offset is of type "uintptr_t" which prevents any promotion which > would cause errors. >=20 > Fixes: c0ad584222b5 ("net/avp: add device initialization") >=20 > Cc: allain.legacy@windriver.com > Signed-off-by: Bruce Richardson Acked-by: Allain Legacy