From patchwork Tue Oct 8 21:12:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 175579 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6231382ill; Tue, 8 Oct 2019 14:13:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyj6MngFx6mqs2KMhiZkiI8K2cLWz8mLZ1nqch8voBfobY9Ev5+ZBsKto6IAO2pjcaNq27G X-Received: by 2002:a17:906:1c06:: with SMTP id k6mr30132312ejg.217.1570569190960; Tue, 08 Oct 2019 14:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570569190; cv=none; d=google.com; s=arc-20160816; b=fLyrBxNhEKpGtyQQwEcaYKl3ilnhbTLHsR2PYiDoz50DikUgG1esPlNZfxGIXGJNTK ySBUoeZu4gXQE8sb2D8rElL4hAij4gk942d5eukUWp+q3wxs0uB8Rg2Qg7hReaC2TzmX 54GyGqbmqwYOvaMd5kcTC1xmzIYV2maJkPmn2zwqnrZ+pAe0SZkJQieT9b0kEdmgstxM 1aY/V3xC1TFO7TKefgpwvLWfa+hdNEPdF58LZTjwm4fd7w+Y9pQCwUxO0GcBQeaVdCC6 qf/brEzcr++/Lmlb5xVLX8LhGzeLvZi5ZqE18bePLF3WFE/hVukyRaote/zDNcZPZ0iJ WRnw== 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=RuvYhJ825n44r/OVzpnGsj+IJEwnHXfy6AAD4Kmcwo8=; b=Fydp8QGigzg006Wg9WekCH1mRLFVjE75T7Xsnbo4YYNjpXbikGUdjwFiiqCglBjkWi aSyOG7hbF5HAFxvD8+uKnxoTRHgFA+wBDdzCfZDWQu/VU7X5tSyxg+VqjSu1Pgs2EMaH vIbGupPKIh/oAtcesibpgCr62mqePpDY1R0hR5IF/va3LCzF4HFYBC9UUDGLOoEh8FYr 2jlAekRwB5+YK9Jr9H+7sp8Bfd5kO4b0UDArbyIP7yilOHwxeMTwJB1/ypKHPMKXQqsT GJC1lAx8n3NAHIBaskY79y8Q5sU1S/iTvx1ULJryoI0k3r0EAORy2MeaDIArn14l+DXt SAdw== 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 Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id f20si117945edm.365.2019.10.08.14.13.10; Tue, 08 Oct 2019 14:13:10 -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 Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E5B111D161; Tue, 8 Oct 2019 23:12:49 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id BBE4A1C134; Tue, 8 Oct 2019 23:12:42 +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 1015315BF; Tue, 8 Oct 2019 14:12:42 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F335B3F68E; Tue, 8 Oct 2019 14:12:41 -0700 (PDT) From: Honnappa Nagarahalli To: honnappa.nagarahalli@arm.com, david.marchand@redhat.com, konstantin.ananyev@intel.com Cc: dev@dpdk.org, ruifeng.wang@arm.com, stable@dpdk.org, nd@arm.com Date: Tue, 8 Oct 2019 16:12:17 -0500 Message-Id: <20191008211220.31586-5-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191008211220.31586-1-honnappa.nagarahalli@arm.com> References: <20191008211220.31586-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v2 4/7] test/rcu: use size_t instead of int 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" Variables used to store the return value of rte_rcu_qsbr_get_memsize in variables of type 'int'. The variables are of type 'size_t' now. Fixes: b87089b0bb19 ("test/rcu: add API and functional tests") Cc: stable@dpdk.org Signed-off-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu --- app/test/test_rcu_qsbr.c | 4 ++-- app/test/test_rcu_qsbr_perf.c | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) -- 2.17.1 diff --git a/app/test/test_rcu_qsbr.c b/app/test/test_rcu_qsbr.c index d1b9e46a2..2f71ec6ad 100644 --- a/app/test/test_rcu_qsbr.c +++ b/app/test/test_rcu_qsbr.c @@ -52,7 +52,7 @@ static int alloc_rcu(void) { int i; - uint32_t sz; + size_t sz; sz = rte_rcu_qsbr_get_memsize(RTE_MAX_LCORE); @@ -81,7 +81,7 @@ free_rcu(void) static int test_rcu_qsbr_get_memsize(void) { - uint32_t sz; + size_t sz; printf("\nTest rte_rcu_qsbr_thread_register()\n"); diff --git a/app/test/test_rcu_qsbr_perf.c b/app/test/test_rcu_qsbr_perf.c index cb2d177b7..280f1811f 100644 --- a/app/test/test_rcu_qsbr_perf.c +++ b/app/test/test_rcu_qsbr_perf.c @@ -125,7 +125,7 @@ test_rcu_qsbr_writer_perf(void *arg) static int test_rcu_qsbr_perf(void) { - int sz; + size_t sz; unsigned int i, tmp_num_cores; writer_done = 0; @@ -188,7 +188,7 @@ test_rcu_qsbr_perf(void) static int test_rcu_qsbr_rperf(void) { - int sz; + size_t sz; unsigned int i, tmp_num_cores; rte_atomic64_clear(&updates); @@ -234,7 +234,7 @@ test_rcu_qsbr_rperf(void) static int test_rcu_qsbr_wperf(void) { - int sz; + size_t sz; unsigned int i; rte_atomic64_clear(&checks); @@ -379,7 +379,7 @@ static int test_rcu_qsbr_sw_sv_1qs(void) { uint64_t token, begin, cycles; - int sz; + size_t sz; unsigned int i, j, tmp_num_cores; int32_t pos; @@ -498,7 +498,8 @@ static int test_rcu_qsbr_sw_sv_1qs_non_blocking(void) { uint64_t token, begin, cycles; - int ret, sz; + int ret; + size_t sz; unsigned int i, j, tmp_num_cores; int32_t pos;