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 8953CA0542 for ; Fri, 18 Nov 2022 09:55:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C128B42D48; Fri, 18 Nov 2022 09:55:24 +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 E48DB42D4B for ; Fri, 18 Nov 2022 09:55:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668761722; 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=aMoPOzt+eX57oSNwRxnWA9fiC8fiS0u4N9em7sQCJJo=; b=Vc6J3aQYDpUkhOspQ0n3DXCpyy/m3hTxKGI3mGRIqZLuYbdoEEt5Ab2IZ3jHvEaWIoAI5h xNTG1U1nzlWpDC9Z7dh40b2pe4apnoHaFof73yIS4ramEHHp51GWv2AUHTXvHbE9AqLVMp tdm8vm0Pb2wb/W2cvMZxeXNUPXksH9c= 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-661-UAMc2aXQPnWL2EYbj7rM8A-1; Fri, 18 Nov 2022 03:55:19 -0500 X-MC-Unique: UAMc2aXQPnWL2EYbj7rM8A-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BCE422932481; Fri, 18 Nov 2022 08:55:18 +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 51247492B15; Fri, 18 Nov 2022 08:55:17 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Aman Singh , Yuying Zhang , Kevin Traynor , Bernard Iremonger , Jens Freimann Subject: [PATCH 07/11] app/testpmd: fix build with clang 15 Date: Fri, 18 Nov 2022 09:53:09 +0100 Message-Id: <20221118085313.2118977-8-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.10 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 used to create some artificial load. Fixes: 3c156061b938 ("app/testpmd: add noisy neighbour forwarding mode") Cc: stable@dpdk.org Signed-off-by: David Marchand --- app/test-pmd/noisy_vnf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/noisy_vnf.c b/app/test-pmd/noisy_vnf.c index b17a1febd3..c65ec6f06a 100644 --- a/app/test-pmd/noisy_vnf.c +++ b/app/test-pmd/noisy_vnf.c @@ -57,8 +57,8 @@ do_write(char *vnf_mem) static inline void do_read(char *vnf_mem) { + uint64_t r __rte_unused; uint64_t i = rte_rand(); - uint64_t r; r = vnf_mem[i % ((noisy_lkup_mem_sz * 1024 * 1024) / RTE_CACHE_LINE_SIZE)]; -- 2.38.1