From patchwork Sun Sep 8 22:49:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 173351 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp3622256ilq; Sun, 8 Sep 2019 15:51:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZTJ/Eu8K4wbubQYniObo/t6tIg+hxUPUkKVgpHTDGG9RNToUWf8sPu8mLl/dGx3ZfQDGn X-Received: by 2002:a1c:be12:: with SMTP id o18mr6969435wmf.128.1567983065923; Sun, 08 Sep 2019 15:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567983065; cv=none; d=google.com; s=arc-20160816; b=suZZnRl37ASkHHeZ596ltCANUfWhXceD6ZnB3mtWfZaQ82lCNhDdaV8+tMvGKv6PHM E5hAd+nNhyXuCtUNJbTkeA6lBzM0THhxrpShKMobXLeP40cw/cPJMi8w9+Bh0QMSh0kF hD0HKsFWOUnVu3uB35NYm/l2Ahu2l1Sq+kjt7Yt4HmJ6e832W+Yv+tINJRC4CPf339ye /8S8XORfPoAZw38hJTl1dfHuGF3IjkJlG02vWIO8IjXg9TzsJaS8lbUTDOoYy79clA2o 1/ECF5MBTNdcpCDGlea+VsVaM42EZ49zgqpgAtzohZVi8Sx3SRQ64f3JrqjqbK2Ufn/O 4UPQ== 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=gnawZlEYnYwIEw0l5XvScE+T37Hqh2Wx4GHIiMucB14=; b=NXVPffwi/QNebI1N0yUfA3rTahLEeiVmrwfNpmUD/YhK++VBRIdTTxiBhtVKyCQuNc 8actaTTZTKrEbOg7Wgt/WHup7TgjOvpuQ1vZ5xWjScpesRyVwhsQlCevD3D5U5BpImVl lQuJaHd/Kjp7slO4PTjwFyX3OP1uFW9iPs4VkkmhjiA70MIlSQHjxLV/CXBdBHJjkd5/ b9qGKY4oezckWVceCrmCFx8RYeaE5KqeCtdkyf7qfFFNH6YgFh8M375FFmfRsqiPtL98 c9oAH5gnMIxkZ+TESeCUZdZkErgOlVzZDCRUQl8IVc7wPXQhATXkiYkzvi6DxdTjJlMX hpgg== 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 6si9266455wmf.188.2019.09.08.15.51.05; Sun, 08 Sep 2019 15:51:05 -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 CAA561EA21; Mon, 9 Sep 2019 00:50:49 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 0FDBF1EA15; Mon, 9 Sep 2019 00:50:48 +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 9639C337; Sun, 8 Sep 2019 15:50:47 -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 8685E3F67D; Sun, 8 Sep 2019 15:50:47 -0700 (PDT) From: Honnappa Nagarahalli To: honnappa.nagarahalli@arm.com, konstantin.ananyev@intel.com Cc: dev@dpdk.org, stable@dpdk.org Date: Sun, 8 Sep 2019 17:49:46 -0500 Message-Id: <20190908224949.34851-5-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190908224949.34851-1-honnappa.nagarahalli@arm.com> References: <20190908224949.34851-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH 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_perf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/app/test/test_rcu_qsbr_perf.c b/app/test/test_rcu_qsbr_perf.c index cb2d177b7..e0598614c 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;