From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A3608A04B5; Tue, 27 Oct 2020 15:14:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8441158E6; Tue, 27 Oct 2020 15:14:12 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 912B6592C for ; Tue, 27 Oct 2020 15:14:10 +0100 (CET) IronPort-SDR: XT5ikmX8wYXN5DvDbcY48xtwB8ceMQNGIcRgJGO2txsFAUdB+I4DH07ES/tNr03iEQwJAEuKTN Jomd13RMbdWQ== X-IronPort-AV: E=McAfee;i="6000,8403,9786"; a="232271578" X-IronPort-AV: E=Sophos;i="5.77,424,1596524400"; d="scan'208";a="232271578" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2020 07:14:09 -0700 IronPort-SDR: bC/kKu7UCstLn0AW80ii0TvNz+rb1umdvaHOeKjSqwGE6UQ75T4JE2Wc58B18kazNl2IMP6/zn 5Kois53gCDFA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,424,1596524400"; d="scan'208";a="535811269" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga005.jf.intel.com with ESMTP; 27 Oct 2020 07:14:09 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 27 Oct 2020 07:14:08 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 27 Oct 2020 07:14:08 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.170) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 27 Oct 2020 07:14:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fMX6b3VNznmhXO0qpy3QXB3OT1vH2amR/yZdJ17DkhwWBzmgIhEv2dIZu8RMhCcVhwL5OYTMymxr7/AxJm4qkwXoNmHKsaOub598Ef17KX4o2deKRfwU3GGsWhl9tStrdiYuGAKjGDGfqEud7zA9cLOd7FPS/UZ/efERrczClVb/7hKIlD1wdskiPTzY6OxsbIvs1HJ2SwPXwP5GwFMISZF5SXFqUnDmjw0xSAoHt+QiyAFu0jM58YTr67Y7LwvCAIWl3p5kNuFUNiira5LUhRto7v+AyFQrhIOMyRqD6exKt1SVbmQWTXmRWsh01RHG6u2pAk+wDv/z1LJ9G5pW3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=thq8VAEG5qSr2MBCwnIm3MeCVLGldHtKyXETbRdDZN0=; b=O5VsxfafzNhZbqADWbxD5LSjE4tYBORmGkHJH4qClzBc3CM4kIKLT95ekR7Zdu82Cjyy6ukKSS8zactPxoi7FzIV5HEA3XwYcYXa3/PgbbzBdLm5+YBKG5XPlhHrMMu7uV3kyNdfh389+f+TPz9luZ57Glh4cA2lSs7Ahn9su8LevPnkBbYaMvOr+bMSHMxEBZN3GjG7pr64ZeSkH+6J2GRPLuugVwGHQHVL+ny2gGnBWgZK0DgvesdgaE7gEV6FWoGqSPaJuvvVHOC9QqyD1MZKEsQHV7klVqWwLD5M5q4i2UOk1uu3wLUSGgn0s8NRN/OrGZc/i2oZdlztZfIMXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=thq8VAEG5qSr2MBCwnIm3MeCVLGldHtKyXETbRdDZN0=; b=WRin2bdz1Ra7RtSo82S5gC9CWrdBjYOUgT3ap5C10F/WQ1Qbxdqjbneprh3DSC3ojOiVGaFDck0wPsGZv6UryoyV2hFUBkXmZmuK8fsfM4ETe9vh+es8Xl3iY2DEBXXh1tc5q2AAzRPFT5xLuCYPs5dsPv/7mxU0g28k7opDSH8= Received: from BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) by SJ0PR11MB5039.namprd11.prod.outlook.com (2603:10b6:a03:2da::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Tue, 27 Oct 2020 14:14:07 +0000 Received: from BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f5a4:3f6b:ade3:296b]) by BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f5a4:3f6b:ade3:296b%3]) with mapi id 15.20.3499.018; Tue, 27 Oct 2020 14:14:07 +0000 From: "Ananyev, Konstantin" To: Honnappa Nagarahalli , "dev@dpdk.org" , "stephen@networkplumber.org" CC: "dharmik.thakkar@arm.com" , "ruifeng.wang@arm.com" , "olivier.matz@6wind.com" , "david.marchand@redhat.com" , "nd@arm.com" Thread-Topic: [PATCH v5 8/8] test/ring: user uintptr_t instead of unsigned long Thread-Index: AQHWqpIsc2Ghxq4o+UWFndM6OPBQxKmrgaVA Date: Tue, 27 Oct 2020 14:14:07 +0000 Message-ID: References: <20200224203931.21256-1-honnappa.nagarahalli@arm.com> <20201025054556.14277-1-honnappa.nagarahalli@arm.com> <20201025054556.14277-9-honnappa.nagarahalli@arm.com> In-Reply-To: <20201025054556.14277-9-honnappa.nagarahalli@arm.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [46.7.39.127] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ca524066-7011-4c8e-4c89-08d87a82918e x-ms-traffictypediagnostic: SJ0PR11MB5039: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2582; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: YHDaR6T8R4tzC69eHi6/WDs4EhXIjlCvMnk+x/TRn1vXuZKtrB2klibcGYf3ucLSlAw2u9/hvONN5GbAWzfmLjqQM4d5OH2OnbALF5zHo7t9RjPHePvZ5kTQrvaQ1DmbuLgoWptbwTn9yWS9Yt19+NvBTslK43LbLBfKNBkKTCoG4v8cVm1CMMJCd6eqT+am3c1kCOtLHgzG+adiA245SW6DWseD+O1lcTH62iXTzDWk46LYC9f9e8YUpYIxhnXDPXvXgGBmlYAB+TBUsoNPjMySHW+N/k1iRJUuRnISTX3U2k4HP/g3qn/FExdnY7dT7MgqZx/0h6yyNbmm57EHcA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3301.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(136003)(39860400002)(376002)(346002)(5660300002)(2906002)(76116006)(9686003)(8676002)(66476007)(26005)(8936002)(66946007)(66556008)(186003)(6506007)(64756008)(66446008)(83380400001)(7696005)(4326008)(71200400001)(52536014)(110136005)(86362001)(478600001)(54906003)(33656002)(316002)(4744005)(55016002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: YQ/lporxck8yxNSZUTgIOlS4iIVhM9/3F+g8xt1zSmJEnrj8vvwnIs+zeKdWR4Xl6o1kalPQDwwC3XFNFZLWPt2EMNHykszN+Nigxe3u9sGtg/OTp5HfH3ZJhIzNdp/YQaeZ5ofMo/TsqYkWmXBGoG0xV5eGMTly6BwW7vGHJWBhAPri2RfwQYJDYXaZtNekZdD6TIm7jaKf+/JJ+pFXaynYBkHGEpW/Dc3JzOjgw2wdqylwoTfFO4ZFmewP6MilDUiGgckzkgrnLzwj2m9Js5x/AbjoptRq7yc3hKiN2p+0X3Tz0Sqg3Xa3XJ+AIaW6cPPtAsKQPKDXCqvx7vtZfAPyNgQ/LIfRE3gAS3iBXsVz81KSdesexABZ+DTrvBnh6qRGWKJvDTYTCpiNG0v0+sd29rvPQVwEEDKywXLzSyNXx/McH+RVH0U+t/DCu1jkD+IgtC8VtFg8GM2pAqqley02ZSFutKkbt61vOybQqbSnoXYSaenzAdnyjJaRkJugeeEs90GipB7UXNjY85nsWymVlr9RojuaXLIFgPuZ6ZfRWic2rB4Yq8K/n3rf+q9i36FyJSj7+olZUIz+fKCKhe76v812F/w/nVXWbo/9K9i0po43aAmUBuhlOJFnyGVfWnobhKEm7LlRwjhWb6OFXw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3301.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca524066-7011-4c8e-4c89-08d87a82918e X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2020 14:14:07.8155 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: W0/Y6KW9Ay+HElkm0qaXqzgGfm5YnxpfLIzvlVUzT1ZqyAUD3vUaSxxAb1Bc+jNy91j3Sg0n3sZfmH2OfCabJZk7Rmd5W7RAxS/EINH5A/c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5039 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v5 8/8] test/ring: user uintptr_t instead of unsigned long 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > Use uintptr_t instead of unsigned long while initializing the > array of pointers. >=20 > Signed-off-by: Honnappa Nagarahalli > --- > app/test/test_ring.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/app/test/test_ring.c b/app/test/test_ring.c > index 3914cb98a..5b7fdfa45 100644 > --- a/app/test/test_ring.c > +++ b/app/test/test_ring.c > @@ -447,7 +447,7 @@ test_ring_mem_init(void *obj, unsigned int count, int= esize) > /* Legacy queue APIs? */ > if (esize =3D=3D -1) > for (i =3D 0; i < count; i++) > - ((void **)obj)[i] =3D (void *)(unsigned long)i; > + ((void **)obj)[i] =3D (void *)(uintptr_t)i; > else > for (i =3D 0; i < (count * esize / sizeof(uint32_t)); i++) > ((uint32_t *)obj)[i] =3D i; > -- Acked-by: Konstantin Ananyev > 2.17.1