From patchwork Fri Nov 18 08:53:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Marchand X-Patchwork-Id: 119957 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 62641A0542; Fri, 18 Nov 2022 09:55:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9DA5842D3C; Fri, 18 Nov 2022 09:55:20 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 4DA4542D3B for ; Fri, 18 Nov 2022 09:55:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668761717; 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=23IWTLKyzE5I7nc4upJoOLmeAp6Co3jcYqX1kAn6iMA=; b=GXlPYTpJZA1jBmWzk/YDw1ggPXrcrDaRLD/TjKIGmc5IRxQjkDdJOXDWFZQTcB7vomD37I yo6K7LU7tpg9Xjegg+2D+H2bKarBLGXPGREzmMy2/uhJ2Qfk2VWBfUBlLLarcuisnTsfc/ lSayC1C2zpqXR1yFB8dkDLhIhVDMq4s= 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-80-vr4uRw1JPpKpW1JvFJi5Pw-1; Fri, 18 Nov 2022 03:55:12 -0500 X-MC-Unique: vr4uRw1JPpKpW1JvFJi5Pw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E63BE85A5B6; Fri, 18 Nov 2022 08:55:11 +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 C8179C0297B; Fri, 18 Nov 2022 08:55:10 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Hemant Agrawal , Sachin Saxena , Nipun Gupta Subject: [PATCH 05/11] net/dpaa2: fix build with clang 15 Date: Fri, 18 Nov 2022 09:53:07 +0100 Message-Id: <20221118085313.2118977-6-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.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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 This variable is not used. Fixes: 4690a6114ff6 ("net/dpaa2: enable error queues optionally") Cc: stable@dpdk.org Signed-off-by: David Marchand --- drivers/net/dpaa2/dpaa2_rxtx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 5b02260e71..f60e78e1fd 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -620,7 +620,7 @@ dump_err_pkts(struct dpaa2_queue *dpaa2_q) /* Function receive frames for a given device and VQ */ struct qbman_result *dq_storage; uint32_t fqid = dpaa2_q->fqid; - int ret, num_rx = 0, num_pulled; + int ret, num_rx = 0; uint8_t pending, status; struct qbman_swp *swp; const struct qbman_fd *fd; @@ -660,7 +660,6 @@ dump_err_pkts(struct dpaa2_queue *dpaa2_q) while (!qbman_check_command_complete(dq_storage)) ; - num_pulled = 0; pending = 1; do { /* Loop until the dq_storage is updated with @@ -695,7 +694,6 @@ dump_err_pkts(struct dpaa2_queue *dpaa2_q) dq_storage++; num_rx++; - num_pulled++; } while (pending); dpaa2_q->err_pkts += num_rx;