From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D8DA148A9D; Fri, 7 Nov 2025 16:54:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1FB1F40ED8; Fri, 7 Nov 2025 16:51:41 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id DE7D440E7C for ; Fri, 7 Nov 2025 16:51:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1762530698; x=1794066698; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8wDSTJXoUdIfsqrHQCtlJEX/+1PJJcmYZVxVudaKfEU=; b=KYzY6uFCdSoSQ2J1OJUX1Z6WQ+9bgJFyHQIE5Ptlv+oiVZXTt4uolLGO CaVBLx0kHS4WxxOAZ7kBfbppw+hbifJ+UOU6+LWSf2T7D9ZyTOroS/Xyg VzUh4UItgJVBplB15zzd9H2uRfbew3XITZVVBPl7BCZ7Pc8auKYX8qzbe VxoeRTN0JLzzGf4fsH/IwWVHaB3ouYykUN+UPt8t+amTydCsGhX4LpBi7 9OKe/Ixq8QjouwtAWsyDd7aZHSpv5w1xFSLD4cQ9TsSTmnxGHqZnMSCZs hwC39XzCtbZ0IEDwQX7Un1JnkiWvBRaGVctMWjDvnLvo+FOyEAp9ENbef A==; X-CSE-ConnectionGUID: 4miee5gaTAuH+WAwJ6VUSg== X-CSE-MsgGUID: teA6fLLbQRqthYFBHAcDXA== X-IronPort-AV: E=McAfee;i="6800,10657,11606"; a="90151881" X-IronPort-AV: E=Sophos;i="6.19,287,1754982000"; d="scan'208";a="90151881" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2025 07:51:37 -0800 X-CSE-ConnectionGUID: 1c4C3NArSTGu9X+qwvnuEQ== X-CSE-MsgGUID: ioWHGE65TO24d7ACVIsuaQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,287,1754982000"; d="scan'208";a="187321775" Received: from silpixa00401385.ir.intel.com ([10.20.224.226]) by orviesa006.jf.intel.com with ESMTP; 07 Nov 2025 07:51:37 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Jerin Jacob Subject: [RFC PATCH v2 26/33] app/test-eventdev: fix build with shadow warnings enabled Date: Fri, 7 Nov 2025 15:50:22 +0000 Message-ID: <20251107155034.436809-27-bruce.richardson@intel.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20251107155034.436809-1-bruce.richardson@intel.com> References: <20251106140948.2894678-1-bruce.richardson@intel.com> <20251107155034.436809-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Rename or remove shadowed variables to give a clean build with -Wshadow. Signed-off-by: Bruce Richardson --- app/test-eventdev/evt_main.c | 6 +++--- app/test-eventdev/test_atomic_queue.c | 6 +++--- app/test-eventdev/test_perf_common.c | 4 +--- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/app/test-eventdev/evt_main.c b/app/test-eventdev/evt_main.c index 03114020f1..6f71c0a73d 100644 --- a/app/test-eventdev/evt_main.c +++ b/app/test-eventdev/evt_main.c @@ -30,11 +30,11 @@ signal_handler(int signum) } static inline void -evt_options_dump_all(struct evt_test *test, struct evt_options *opts) +evt_options_dump_all(struct evt_test *t, struct evt_options *opts) { evt_options_dump(opts); - if (test->ops.opt_dump) - test->ops.opt_dump(opts); + if (t->ops.opt_dump) + t->ops.opt_dump(opts); } int diff --git a/app/test-eventdev/test_atomic_queue.c b/app/test-eventdev/test_atomic_queue.c index 8ce0849664..2b7bbeb370 100644 --- a/app/test-eventdev/test_atomic_queue.c +++ b/app/test-eventdev/test_atomic_queue.c @@ -34,7 +34,7 @@ static inline void atomic_queue_process_stage_1(struct test_order *const t, struct rte_event *const ev, uint32_t nb_flows, - rte_spinlock_t *atomic_locks, + rte_spinlock_t *atomic_lks, uint32_t *const expected_flow_seq, RTE_ATOMIC(uint64_t) * const outstand_pkts, uint32_t port) @@ -42,7 +42,7 @@ atomic_queue_process_stage_1(struct test_order *const t, const uint32_t flow = *order_mbuf_flow_id(t, ev->mbuf); const uint32_t seq = *order_mbuf_seqn(t, ev->mbuf); - atomic_lock_verify(atomic_locks, 1, flow, nb_flows, t, port); + atomic_lock_verify(atomic_lks, 1, flow, nb_flows, t, port); /* compare the seqn against expected value */ if (seq != expected_flow_seq[flow]) { @@ -58,7 +58,7 @@ atomic_queue_process_stage_1(struct test_order *const t, ev->op = RTE_EVENT_OP_RELEASE; - atomic_spinlock_unlock(atomic_locks, 1, flow, nb_flows); + atomic_spinlock_unlock(atomic_lks, 1, flow, nb_flows); } static int diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c index 6b2ce61832..8201f2351a 100644 --- a/app/test-eventdev/test_perf_common.c +++ b/app/test-eventdev/test_perf_common.c @@ -2131,12 +2131,10 @@ perf_cryptodev_destroy(struct evt_test *test, struct evt_options *opt) void *sess; struct prod_data *p = &t->prod[port]; uint32_t flow_id; - uint8_t cdev_id; for (flow_id = 0; flow_id < t->nb_flows; flow_id++) { sess = p->ca.crypto_sess[flow_id]; - cdev_id = p->ca.cdev_id; - rte_cryptodev_sym_session_free(cdev_id, sess); + rte_cryptodev_sym_session_free(p->ca.cdev_id, sess); } rte_event_crypto_adapter_queue_pair_del( -- 2.48.1