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 5172F43E7E for ; Mon, 15 Apr 2024 23:32:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 331BF4027E; Mon, 15 Apr 2024 23:32:30 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 7E2544021E; Mon, 15 Apr 2024 23:32:28 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 7089A20FB9C3; Mon, 15 Apr 2024 14:32:27 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7089A20FB9C3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1713216747; bh=DUqAsfHqZLv2++AciXan1rUvrRmFlV4/k6eRJ14Av0M=; h=From:To:Cc:Subject:Date:From; b=GiEG+KULkRVIAxPGjuJ1wgO1iEzUenh4ou0+O/RzvxRPQs51pxD9DqX9zBlRqf905 1f7I5HoVXg49GvvasKFbMEsW6al5y6dbplIv9c+o2n+nUj0We5awVbFOy+dgbPSfKv a3qeUPlMb6wcl/Ci+ZE5j6eQoOFZrIDSi9fEjPvM= From: Tyler Retzlaff To: dev@dpdk.org Cc: Harry van Haaren , Remy Horton , Reshma Pattan , Tyler Retzlaff , stable@dpdk.org Subject: [PATCH] latencystats: fix missing f suffix on literal float Date: Mon, 15 Apr 2024 14:32:26 -0700 Message-Id: <1713216746-25584-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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 Add missing f suffix to floating point literal to avoid warning about truncation from double to float. Fixes: 5cd3cac9ed22 ("latency: added new library for latency stats") Cc: reshma.pattan@intel.com Cc: stable@dpdk.org Signed-off-by: Tyler Retzlaff --- lib/latencystats/rte_latencystats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/latencystats/rte_latencystats.c b/lib/latencystats/rte_latencystats.c index 4ea9b0d..cae4b50 100644 --- a/lib/latencystats/rte_latencystats.c +++ b/lib/latencystats/rte_latencystats.c @@ -166,7 +166,7 @@ struct latency_stats_nameoff { * a constant smoothing factor between 0 and 1. The value * is used below for measuring average latency. */ - const float alpha = 0.2; + const float alpha = 0.2f; now = rte_rdtsc(); for (i = 0; i < nb_pkts; i++) { -- 1.8.3.1