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 9856DA0548 for ; Sun, 28 Nov 2021 15:55:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8ECE840E5A; Sun, 28 Nov 2021 15:55:24 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2077.outbound.protection.outlook.com [40.107.92.77]) by mails.dpdk.org (Postfix) with ESMTP id 9E87A40FDF for ; Sun, 28 Nov 2021 15:55:22 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RGdZnZqwPFvUVkT2Pu+ma2dNHyEkjJHSGtfdgeEaNBDae9tB7o96cGbhZo39su4+p1+b8p+HiSgONwKRnuxRllYKtkNH9sliDVnD4j+7P/f3FjgwtB9d+yGgWgbnAt3weJ42ebzHe4U9bZSPRk8FpmYSgq/ITLnLSXYULy9EBkOlYOuDDorei3ZCc4AZBCN9cS/bNxeSDPPsuCVxhkxxmQd1suDDccC5NNqX8eyV0fovPT7ErXijX/jjFzAeaWOtvPMn0AAquTrD0Igz/RC4gQ0WtYgRBjj1vVTydfx4oTWzHvHPwb357rbmCFjITm78+Nz9obxlcFZnf6MTuo2RBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rpDt5gEpS/dqNNJnYKS3vXqxbZIV949p0vHbIINAjBo=; b=fK3p//Ja4YNmBSEyp+glQkr2Maz/mXCSl54PXH8uk2yn/0n7YFtUPd5Knz20btkKpjP36G9TflZHdRiA2U5X7VHXx/K9QjU50HExRkV+/Zs2sUKCtxg/WOPgNv2SxU4QN3GFw0iLY5e0ghuy+rfAbzbMdeX9hfUPsqTG4WRQjFUE2TLQVp1UFo76B5Ea8ehKqUdBeyTuUBA8MdemyI1JgLw27nxlS05fIZBEm5bUnP+xPvQDTYM6IR9wnKSppTgKbJ9MFTA04Z8JL+d27muWdrxd7VYJFWWXYoDk3o9e/0wPR15DbfkqykGim4tXot75Qxv+Cq1q1h+atgdDeoJLpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=redhat.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rpDt5gEpS/dqNNJnYKS3vXqxbZIV949p0vHbIINAjBo=; b=MaQxNbp/DIvczVSQEXY4L5JB5zB7/PJCwz7zMns1J6sgKXPewrv/pc4hwO+HTMyVzXMLzai2Fgl2GHNPJSWgd5ENqTLljFTSnan+C6uDWm6japF16jDiysNd+5gyfq0ofuGw2rPWhVGXUMXjeSGyYtbSeos3mhemqClRDM3IxTQvqR/le1MpRQd+/JJDbcoVUZ1DDzUyAJduBhsuWHFK6UYWSPHbJmKxB2pqKIG9NXnVUx4x7szfbnTKG1LSo2zTdSGzfTnuTzt6z3N1hTbublpkcXeXLZXqSBw7nwNi+okay2lx72BB/HU7nM/J99klI3ltLl95FY3jkvfrh1iFTw== Received: from DM5PR15CA0030.namprd15.prod.outlook.com (2603:10b6:4:4b::16) by MW2PR12MB4683.namprd12.prod.outlook.com (2603:10b6:302:5::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.22; Sun, 28 Nov 2021 14:55:20 +0000 Received: from DM6NAM11FT058.eop-nam11.prod.protection.outlook.com (2603:10b6:4:4b:cafe::78) by DM5PR15CA0030.outlook.office365.com (2603:10b6:4:4b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.22 via Frontend Transport; Sun, 28 Nov 2021 14:55:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT058.mail.protection.outlook.com (10.13.172.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4734.22 via Frontend Transport; Sun, 28 Nov 2021 14:55:19 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 28 Nov 2021 14:55:17 +0000 From: Xueming Li To: Jim Harris CC: Luca Boccassi , David Marchand , dpdk stable Subject: patch 'power: fix build with clang 13' has been queued to stable release 20.11.4 Date: Sun, 28 Nov 2021 22:53:10 +0800 Message-ID: <20211128145423.3974892-7-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211128145423.3974892-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> <20211128145423.3974892-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0ca83206-4131-4b72-7d66-08d9b27f18e0 X-MS-TrafficTypeDiagnostic: MW2PR12MB4683: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lAl8Hkd1U8tEGr4IZccB8OcwYX5zfbiExphry/l5hi6PSJhICFg8H2o1qU1aUfsgRgkyMDRa7W9Wv5ZPGlY0RCEgevUzkt4MJcAFWk2V9O6eU/iLJGb8oa94KZoIHeIqqZfHB4nN/FhjnqNIIczUNAz7pekOVDMGAJDFDXe5xVGVCcxXMHHMkEhyyOFHJv6mvW3WcRC8n8ys1AoGR9q9/jBh0Pte7YZAAcQkWe7EuFGyRqjF7VLRsWZZ5BYETgjm0NEpkMSNNLYOPwjp8rBrdDJVeNvnjTfMFdX7AkS42Sw/ICXbuspvmZeyqVkOJHQCbcHrPcDzzZHqYX7UWtjzry2siHDYqmXm8rHosAmalCqG58LmQAsDEv0ami0MtnHHAIoFKSVJvJO7oiZFN5rPO+12K8WVtEHsnJdtqWtXPCJV8KzDruP7rM+0Qg/ZLV4CVYtJmxlKn6QsIhIPgGTsRwnzIW0W/GZ8xSvPzrCBzobDaz9F8ILa8tHZ1Mi7+8JK1LpdubaCulnF6TnjXZ1qD30djRORo5X9tPhjs4q4k5V/5JTy7C/tSz/VsvsiH0bFth6vR8zTuojGjz9HIgx+gmzNw21dnPXZ+ihXm2g/OnrLGIWXd2cKIheJ76+GSdSLXIiebuWPL2FU3rqcGemBM22z9YnyirSohXf9/gM8YenYssbFuXlMe2zMDKs0Snt2PcaGhyirk8TpvDmCLCIxZFXESEm8qIbolIbKEGXh7nOfDNqmlexQDRhMUk+6h+QZA9Zt9a8PH57UnCBbkLZta2wtQQPYW5yBKrzRodBC0FztxsL1dsMWIb5TFOMkWbtOd6KFjmZ4/nLemIi2lI6lLQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(82310400004)(6286002)(5660300002)(966005)(83380400001)(356005)(47076005)(16526019)(186003)(508600001)(336012)(55016003)(53546011)(2616005)(426003)(6916009)(4001150100001)(6666004)(70586007)(86362001)(7696005)(8676002)(316002)(54906003)(2906002)(36860700001)(26005)(7636003)(8936002)(4326008)(1076003)(70206006)(36756003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2021 14:55:19.6482 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0ca83206-4131-4b72-7d66-08d9b27f18e0 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT058.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR12MB4683 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 Hi, FYI, your patch has been queued to stable release 20.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/30/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/180fa49727dfbf755c1dc76231892204a4f0ae69 Thanks. Xueming Li --- >From 180fa49727dfbf755c1dc76231892204a4f0ae69 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Fri, 5 Nov 2021 15:53:51 +0000 Subject: [PATCH] power: fix build with clang 13 Cc: Xueming Li [ upstream commit 0353121c33846c40ff2e2282448f324c93d3ce9d ] clang-13 rightfully complains that the tot_ppi variable in update_stats is set but not used, since the final accumulated tot_ppi results isn't used anywhere. Fixes: 450f0791312c ("power: add traffic pattern aware power control") Signed-off-by: Jim Harris Reviewed-by: David Marchand --- lib/librte_power/rte_power_empty_poll.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/librte_power/rte_power_empty_poll.c b/lib/librte_power/rte_power_empty_poll.c index 975aa92997..8a2d60c576 100644 --- a/lib/librte_power/rte_power_empty_poll.c +++ b/lib/librte_power/rte_power_empty_poll.c @@ -207,7 +207,7 @@ update_training_stats(struct priority_worker *poll_stats, static __rte_always_inline uint32_t update_stats(struct priority_worker *poll_stats) { - uint64_t tot_edpi = 0, tot_ppi = 0; + uint64_t tot_edpi = 0; uint32_t j, percent; struct priority_worker *s = poll_stats; @@ -237,7 +237,6 @@ update_stats(struct priority_worker *poll_stats) for (j = 0; j < BINS_AV; j++) { tot_edpi += s->edpi_av[j]; - tot_ppi += s->ppi_av[j]; } tot_edpi = tot_edpi / BINS_AV; -- 2.34.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-28 22:41:03.862179661 +0800 +++ 0006-power-fix-build-with-clang-13.patch 2021-11-28 22:41:03.193543273 +0800 @@ -1 +1 @@ -From 0353121c33846c40ff2e2282448f324c93d3ce9d Mon Sep 17 00:00:00 2001 +From 180fa49727dfbf755c1dc76231892204a4f0ae69 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 0353121c33846c40ff2e2282448f324c93d3ce9d ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -16 +18 @@ - lib/power/rte_power_empty_poll.c | 3 +-- + lib/librte_power/rte_power_empty_poll.c | 3 +-- @@ -19 +21 @@ -diff --git a/lib/power/rte_power_empty_poll.c b/lib/power/rte_power_empty_poll.c +diff --git a/lib/librte_power/rte_power_empty_poll.c b/lib/librte_power/rte_power_empty_poll.c @@ -21,2 +23,2 @@ ---- a/lib/power/rte_power_empty_poll.c -+++ b/lib/power/rte_power_empty_poll.c +--- a/lib/librte_power/rte_power_empty_poll.c ++++ b/lib/librte_power/rte_power_empty_poll.c