From patchwork Sat Oct 24 16:11:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 318950 Delivered-To: patch@linaro.org Received: by 2002:a92:d1d1:0:0:0:0:0 with SMTP id u17csp1344337ilg; Sat, 24 Oct 2020 09:14:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7WrfgCivRNwduiykMd3LGbMGyr8SwY4HEUHch9ovWPag4VNLRSmF8fd1e7FZBCcFN6R0p X-Received: by 2002:a17:906:b043:: with SMTP id bj3mr7344362ejb.543.1603556049488; Sat, 24 Oct 2020 09:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603556049; cv=none; d=google.com; s=arc-20160816; b=hhBT02pqp5ZgTY9JjDDsDv6JIFnJpEaZFMutTP5UYDr/xveNNI4GDH0ZUSOe7r4XZz RmC4nLC38lAvpbD0TURNNWac8bF+U6zTRxlsJcrvtmrC18MRWiLq4Y9+VmztBCC+p3rj S4+6qRkdrF0F+V2G15OwcicfrvTwfg0Q2+QSRqZqDLaSN0cb6y/tDmr99JQhIi8HHqyn TF/BcRa+kJmsQPFkxxtuHmgPuC9a99UBMsvuGZ7CBZKdAfcqgBR9eiNaaj3yvlgc1QwT HqTCfrKdjFO1n4fDd8f+nobJDtflrGJFtGD64zdPoeCwL737KXYw367n1R8+QiFg8Sz3 eofQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=vCXnwduCuuwbGhU0q+GJjT36y3IXjF9zwAb3ILwcWXo=; b=MMrWMuOu3yg3nv7y8DdUTGUKzZGEB9Ukr1oCBVijna8qlUc5XetkjsskGwXkJUoU5Q ZhU/tVAnH91gSPWl3DTCP+Nlz/MaMbCcAHkJgU4loWJHybH4mC6sPSmqT4nalXVmHGWy WKmnNmHDpeFTh7TuY++k6EGzZoWYVJB+O4VYqLBl0aQD60w1oRaMK+2PEjWtXpHvO26u uIxLa+2NhvIO77Yux/om5syMiMFmhsOuDsUvgsxaLHT2lwbGNIOotFbz/XcfEH+QJ44A GXJA9WUlwr5sJKEE2uEVBAfOa8N2/4R5WK/RMQHLbzp+fcmcvqbk3DC4bz2YuZ83KL5M xRZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id i19si3482608edv.19.2020.10.24.09.14.09; Sat, 24 Oct 2020 09:14:09 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 808AA58F9; Sat, 24 Oct 2020 18:11:40 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 8BCE12DCC for ; Sat, 24 Oct 2020 18:11:29 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1090B1435; Sat, 24 Oct 2020 09:11:29 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 08F893F66B; Sat, 24 Oct 2020 09:11:29 -0700 (PDT) From: Honnappa Nagarahalli To: dev@dpdk.org, honnappa.nagarahalli@arm.com, konstantin.ananyev@intel.com, stephen@networkplumber.org Cc: dharmik.thakkar@arm.com, ruifeng.wang@arm.com, olivier.matz@6wind.com, david.marchand@redhat.com, nd@arm.com Date: Sat, 24 Oct 2020 11:11:12 -0500 Message-Id: <20201024161112.13730-9-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201024161112.13730-1-honnappa.nagarahalli@arm.com> References: <20200224203931.21256-1-honnappa.nagarahalli@arm.com> <20201024161112.13730-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v4 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. Signed-off-by: Honnappa Nagarahalli --- app/test/test_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/app/test/test_ring.c b/app/test/test_ring.c index 99fe4b46f..51c05cabb 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 == -1) for (i = 0; i < count; i++) - ((void **)obj)[i] = (void *)(unsigned long)i; + ((void **)obj)[i] = (void *)(uintptr_t)i; else for (i = 0; i < (count * esize / sizeof(uint32_t)); i++) ((uint32_t *)obj)[i] = i;