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 39F20A0542 for ; Fri, 18 Nov 2022 09:55:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 316BB42D2B; Fri, 18 Nov 2022 09:55:30 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 656DC410F1 for ; Fri, 18 Nov 2022 09:55:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668761728; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RKESblSIJB3eSeSYQ8o7n3EtLtN5yBqAyyPVnogtIQM=; b=KMX34xHC4KF/6HpJbPZSWd/ZjWNwT8pZXCCA4o6/4WKy6x/4RaDQm9N3jD0I5LGTT5SLRu HHhyJoQWDq9OGr14rHjfA28srzNnd3nmmUduDp6qqN1wSJVsJjUF6XrWJE2C++cTFs9PuG QVveBF15Pe1gZk6/daBuWuxftq5FbQo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-671-_tphYMHAPEyH7hdfce3paQ-1; Fri, 18 Nov 2022 03:55:23 -0500 X-MC-Unique: _tphYMHAPEyH7hdfce3paQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 033C3101A588; Fri, 18 Nov 2022 08:55:23 +0000 (UTC) Received: from localhost.localdomain (ovpn-192-54.brq.redhat.com [10.40.192.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0E07918EB4; Fri, 18 Nov 2022 08:55:20 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Aman Singh , Yuying Zhang , Olga Shern , Adrien Mazarguil , Ajit Khaparde , Ori Kam , Andrey Vesnovaty , Alexander Kozyrev Subject: [PATCH 08/11] app/testpmd: fix build with clang 15 in flow code Date: Fri, 18 Nov 2022 09:53:10 +0100 Message-Id: <20221118085313.2118977-9-david.marchand@redhat.com> In-Reply-To: <20221118085313.2118977-1-david.marchand@redhat.com> References: <20221118085313.2118977-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org This variable is not used and has been copy/pasted in a lot of other code. Fixes: 938a184a1870 ("app/testpmd: implement basic support for flow API") Fixes: 55509e3a49fb ("app/testpmd: support shared flow action") Fixes: 04cc665fab38 ("app/testpmd: add flow template management") Fixes: c4b38873346b ("app/testpmd: add flow table management") Fixes: ecdc927b99f2 ("app/testpmd: add async flow create/destroy operations") Fixes: d906fff51878 ("app/testpmd: add async indirect actions operations") Cc: stable@dpdk.org Signed-off-by: David Marchand --- app/test-pmd/config.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 982549ffed..9103ba6c77 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1787,7 +1787,6 @@ port_action_handle_destroy(portid_t port_id, { struct rte_port *port; struct port_indirect_action **tmp; - uint32_t c = 0; int ret = 0; if (port_id_is_invalid(port_id, ENABLED_WARN) || @@ -1822,7 +1821,6 @@ port_action_handle_destroy(portid_t port_id, } if (i == n) tmp = &(*tmp)->next; - ++c; } return ret; } @@ -2251,7 +2249,6 @@ port_flow_pattern_template_destroy(portid_t port_id, uint32_t n, { struct rte_port *port; struct port_template **tmp; - uint32_t c = 0; int ret = 0; if (port_id_is_invalid(port_id, ENABLED_WARN) || @@ -2288,7 +2285,6 @@ port_flow_pattern_template_destroy(portid_t port_id, uint32_t n, } if (i == n) tmp = &(*tmp)->next; - ++c; } return ret; } @@ -2368,7 +2364,6 @@ port_flow_actions_template_destroy(portid_t port_id, uint32_t n, { struct rte_port *port; struct port_template **tmp; - uint32_t c = 0; int ret = 0; if (port_id_is_invalid(port_id, ENABLED_WARN) || @@ -2404,7 +2399,6 @@ port_flow_actions_template_destroy(portid_t port_id, uint32_t n, } if (i == n) tmp = &(*tmp)->next; - ++c; } return ret; } @@ -2534,7 +2528,6 @@ port_flow_template_table_destroy(portid_t port_id, { struct rte_port *port; struct port_table **tmp; - uint32_t c = 0; int ret = 0; if (port_id_is_invalid(port_id, ENABLED_WARN) || @@ -2571,7 +2564,6 @@ port_flow_template_table_destroy(portid_t port_id, } if (i == n) tmp = &(*tmp)->next; - ++c; } return ret; } @@ -2719,7 +2711,6 @@ port_queue_flow_destroy(portid_t port_id, queueid_t queue_id, struct rte_flow_op_attr op_attr = { .postpone = postpone }; struct rte_port *port; struct port_flow **tmp; - uint32_t c = 0; int ret = 0; struct queue_job *job; @@ -2768,7 +2759,6 @@ port_queue_flow_destroy(portid_t port_id, queueid_t queue_id, } if (i == n) tmp = &(*tmp)->next; - ++c; } return ret; } @@ -2836,7 +2826,6 @@ port_queue_action_handle_destroy(portid_t port_id, const struct rte_flow_op_attr attr = { .postpone = postpone}; struct rte_port *port; struct port_indirect_action **tmp; - uint32_t c = 0; int ret = 0; struct queue_job *job; @@ -2886,7 +2875,6 @@ port_queue_action_handle_destroy(portid_t port_id, } if (i == n) tmp = &(*tmp)->next; - ++c; } return ret; } @@ -3304,7 +3292,6 @@ port_flow_destroy(portid_t port_id, uint32_t n, const uint32_t *rule) { struct rte_port *port; struct port_flow **tmp; - uint32_t c = 0; int ret = 0; if (port_id_is_invalid(port_id, ENABLED_WARN) || @@ -3337,7 +3324,6 @@ port_flow_destroy(portid_t port_id, uint32_t n, const uint32_t *rule) } if (i == n) tmp = &(*tmp)->next; - ++c; } return ret; } -- 2.38.1