From 1cd3ce09534e035b3b3cfe0475adee656971fd8c Mon Sep 17 00:00:00 2001 From: Tyler Retzlaff Date: Mon, 15 Mar 2021 17:13:31 -0700 Subject: [PATCH] power: replace unsigned -1 with unsigned maximum MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Use UINT64_MAX instead of -1ULL. Some compilers generate a warning when applying a '-' to an unsigned literal so avoid this by initializing with unsigned preprocessor definition. Signed-off-by: Tyler Retzlaff Acked-by: Morten Brørup Acked-by: Anatoly Burakov --- lib/librte_power/rte_power_pmd_mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_power/rte_power_pmd_mgmt.c b/lib/librte_power/rte_power_pmd_mgmt.c index 454ef7091e..db03cbf420 100644 --- a/lib/librte_power/rte_power_pmd_mgmt.c +++ b/lib/librte_power/rte_power_pmd_mgmt.c @@ -111,7 +111,7 @@ clb_umwait(uint16_t port_id, uint16_t qidx, struct rte_mbuf **pkts __rte_unused, ret = rte_eth_get_monitor_addr(port_id, qidx, &pmc); if (ret == 0) - rte_power_monitor(&pmc, -1ULL); + rte_power_monitor(&pmc, UINT64_MAX); } q_conf->umwait_in_progress = false; -- 2.20.1