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 4F62DA0542 for ; Fri, 18 Nov 2022 09:55:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B95741181; Fri, 18 Nov 2022 09:55:06 +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 C5AF540DDC for ; Fri, 18 Nov 2022 09:55:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668761704; 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=mgbtBfgdHrWSNXT16Gk6MJgGPmO+pU9/GAEKvrOerso=; b=b/9R0RJXqav8zIIvnT5iKmsjTuPVGywZyJyU6OSvzlJMAOdPRI6qDTOceOngy0gY+clZKs /ujqdpv2qLEIE0prr43SLrBuTmElY7LkUetclpTK49tNA0AiqC14XiDqrBlgTNQRveJML2 5uzSf5T8maJNqTRMzw4VdeACQPkqk6c= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-110-CcMFQAaRONKfNuzay51ucA-1; Fri, 18 Nov 2022 03:55:02 -0500 X-MC-Unique: CcMFQAaRONKfNuzay51ucA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3C7361C05EBD; Fri, 18 Nov 2022 08:55:02 +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 E38372027063; Fri, 18 Nov 2022 08:55:00 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Maxime Coquelin , Chenbo Xia , Jiayu Hu , Cheng Jiang Subject: [PATCH 02/11] vhost: fix build with clang 15 Date: Fri, 18 Nov 2022 09:53:04 +0100 Message-Id: <20221118085313.2118977-3-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.4 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. Fixes: abeb86525577 ("vhost: remove copy threshold for async path") Cc: stable@dpdk.org Signed-off-by: David Marchand --- lib/vhost/virtio_net.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c index 4358899718..9abf752f30 100644 --- a/lib/vhost/virtio_net.c +++ b/lib/vhost/virtio_net.c @@ -1877,7 +1877,6 @@ virtio_dev_rx_async_submit_packed(struct virtio_net *dev, struct vhost_virtqueue struct rte_mbuf **pkts, uint32_t count, int16_t dma_id, uint16_t vchan_id) { uint32_t pkt_idx = 0; - uint32_t remained = count; uint16_t n_xfer; uint16_t num_buffers; uint16_t num_descs; @@ -1903,7 +1902,6 @@ virtio_dev_rx_async_submit_packed(struct virtio_net *dev, struct vhost_virtqueue pkts_info[slot_idx].mbuf = pkts[pkt_idx]; pkt_idx++; - remained--; vq_inc_last_avail_packed(vq, num_descs); } while (pkt_idx < count); -- 2.38.1