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 0832B428F8 for ; Sun, 9 Apr 2023 17:28:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 028B2410EF; Sun, 9 Apr 2023 17:28:50 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2045.outbound.protection.outlook.com [40.107.220.45]) by mails.dpdk.org (Postfix) with ESMTP id EE46240EDE for ; Sun, 9 Apr 2023 17:28:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BU1g7Zizbq0rADuxgxcj7TnXhSDFqU50irnRuFVBPhYszfIEYpgrsVwYTvHCIi3ZdXPoy97LvnoNG34LYGDes+vsjC/6HqjfrkFyFpBRlSMrXhuIcqY7knj4Ixz9lAYU9c2s4TrO/x38dSXpQ+3VeA3iiOG/ouXDWoIVFkNyNOhAsfmbBQztDSMUj2ssx7K0vOMdlu84Jeh1XZFZ44nKDbX52k7swpPxipg9/gRw5+/xR7jSbonFwayUKAII9Be5maJcOE3qHCKaB+AE7jJgi4JCBWwbmETJL8C4IpcbOfoY6k8+7B1Xu/9vTcPApfuFLJxP2vW0gJmLcwjYtitKAA== 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=ytuUILUEiLMaaKXfIOmtwbjxgR/ETDK76MghxYNZuko=; b=Aq6QLkc+D45epVnkQnXqRraj5mLBgWwq2fnHT+5jKIF3Tttlef3i34TWLguD/5zA71tr0QkF/l09qkE31P/DKTADQ+dRXhmN0RXvWgWZnTRH3zRLqLjBweRF05Y/Z5qYgTidfBAB4Ejj8ZE9mzYH7gTXOZtiTVrGCwze8KOIxcNYjUhE/DmMoZdNiLFZmRHKNae0sAYYyqrnhWXqaqBkBSgF19LzX1TM3GNE+YYTOfu28Mt7Xe4hyKym5KUWc21+rcte1TOTA1+/VN+jEQcc6oMr7sI77YnOWWukZQhkCCD4bvS/HXe5Ts3vCXR6/yHa4DBDWqaw60T8whyNYeIDZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject 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=ytuUILUEiLMaaKXfIOmtwbjxgR/ETDK76MghxYNZuko=; b=NAvweMxDe686NGiNvza/+XgelVwUSls8VnuNB6u+bFpl/cc3fTrau0DXm5hmkfSLnvHwGtJBwjoUTirihq127hisON6TBzvTEpO0L6d6V3O0qQKcVZAmHO2rfteIgV4RPlcEixaNf97dLPtELgrmkh3kgucg31986OWMRuwUZttiwFgFiX+QaliyjMz7o7RXjq1GIAnAvbBLCP3F6RFF7B7z+wBWY/5OUomRntj0zI3eJRoxk6xtMzmhqq6aE44S70b4lM7zCd8GY18ATRtQhinkkYdsOICqndUmubzK/viO8QHyvYqdjfw7+bNyN2puClbO2ZTVduLE+V1sOA6gnA== Received: from DM6PR03CA0034.namprd03.prod.outlook.com (2603:10b6:5:40::47) by MW4PR12MB7358.namprd12.prod.outlook.com (2603:10b6:303:22b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Sun, 9 Apr 2023 15:28:46 +0000 Received: from DM6NAM11FT104.eop-nam11.prod.protection.outlook.com (2603:10b6:5:40:cafe::e4) by DM6PR03CA0034.outlook.office365.com (2603:10b6:5:40::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35 via Frontend Transport; Sun, 9 Apr 2023 15:28:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT104.mail.protection.outlook.com (10.13.173.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.20 via Frontend Transport; Sun, 9 Apr 2023 15:28:45 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Sun, 9 Apr 2023 08:28:44 -0700 Received: from nvidia.com (10.126.231.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 9 Apr 2023 08:28:43 -0700 From: Xueming Li To: Krzysztof Karas CC: Ferruh Yigit , dpdk stable Subject: patch 'ethdev: fix build with LTO' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:23:43 +0800 Message-ID: <20230409152529.5308-36-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT104:EE_|MW4PR12MB7358:EE_ X-MS-Office365-Filtering-Correlation-Id: eadb9b9a-471a-4db0-572a-08db390f1bc0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9LsSeNiavOFxB73y0Q5tiBQkFmFFYNBa6aAyPtzMBeoWjEmIcagy/A6AZ+VM3bPvRKhbebVFzgNV+qYrzlHMY93aDZW29+v/uFT5P7zUqd+Ntj8iPNtruDsC5ZBUrexvxo7MW7739P5JN2rwh5nPQwzV017UZY6vcgX8r541K4SXdVoEzBEyWl0bAS2pebo3QnkwWs52sVPmuxnNUUnHMo3azg0o+jAmTxotcjTjYc9khOeBtZKzIr7+KIGk8Y1YRcALWZbfJLizAffQ/d9+rb5+PYcnNxD7mqUuso70m0ezcZlWl9NUQWVMK4l1meTSzOEZByTRRa6mPOAMdvlUpxuGXwl4VSVfdc/2+MOxpVUeGHfAmvou09+4f1wQbSY5LhDGvpI/XIcNWVK93ltDmmj5GmPqW3TL2UrhAT2KbjEI57DHAruGba+w8/R9WaRmIl1A1sbVy4blz0RkAwStWwFP8GQNJ7J4nkuPfjz6oozAO0yxQhiKArAbNiSPqq0fMTrgfp1xknkdPF0SP9CiaB73mGlKbHrZtna5VcFFQZpa76ZHsCNMZjr1RdDIxtjI2ZQKbiLaXghXWZUl3CTCQEhFJWyF/ZFlzRir1R588Dj4ypapTB2qoxPpITqOTLg6j9v158rzbvWSO1jdsT+m7/JIccHuIztal1a6mm86ljVfiK0Sltp2peyGMvQkJqrvQBlJpf0XQqngis3b6j1gU+LtV/hWx418aGQm2NoktVh8eXA0/BkY35h3PaMnXAbk6NMp0LWmKAffAUTRljQisokWyIN09kVHQPKkfssQt7jjDAJ8cepXZdWVFzOK9KZL7GmIEx2isimL/tbYXtH5MmeI6zb5cTTGLx3loTv6f28= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(346002)(39860400002)(376002)(136003)(396003)(451199021)(46966006)(40470700004)(36840700001)(478600001)(7696005)(316002)(54906003)(1076003)(26005)(53546011)(16526019)(6286002)(186003)(966005)(2906002)(70586007)(70206006)(5660300002)(8676002)(6916009)(4326008)(41300700001)(8936002)(82310400005)(356005)(82740400003)(7636003)(55016003)(86362001)(40480700001)(36756003)(40460700003)(47076005)(83380400001)(2616005)(336012)(426003)(36860700001)(23180200003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:28:45.4377 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eadb9b9a-471a-4db0-572a-08db390f1bc0 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT104.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7358 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 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 04/11/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/00af2661ac7a56f1f093cb94c4a702ac971b8fe7 Thanks. Xueming Li --- >From 00af2661ac7a56f1f093cb94c4a702ac971b8fe7 Mon Sep 17 00:00:00 2001 From: Krzysztof Karas Date: Mon, 20 Feb 2023 17:44:06 +0100 Subject: [PATCH] ethdev: fix build with LTO Cc: Xueming Li [ upstream commit cdd7ab072d1e662b1d06840447e7d1b8ab8946e3 ] When Link Time Optimization is enabled, compiler may complain about "id" in eth_representor_cmp() being uninitialized. To suppress the warning it is enough to add explicit initialization of the variable causing the issue. Fixes: df7547a6a2cc ("ethdev: add helper function to get representor ID") Signed-off-by: Krzysztof Karas Acked-by: Ferruh Yigit --- .mailmap | 1 + lib/ethdev/rte_class_eth.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index dc8a8637e1..ea09ef90cb 100644 --- a/.mailmap +++ b/.mailmap @@ -712,6 +712,7 @@ Konstantin Ananyev Krzysztof Galazka Krzysztof Kanas +Krzysztof Karas Krzysztof Witek Kuba Kozak Kumar Amber diff --git a/lib/ethdev/rte_class_eth.c b/lib/ethdev/rte_class_eth.c index 838b3a8f9f..b61dae849d 100644 --- a/lib/ethdev/rte_class_eth.c +++ b/lib/ethdev/rte_class_eth.c @@ -67,7 +67,7 @@ eth_representor_cmp(const char *key __rte_unused, const struct rte_eth_dev *edev = opaque; const struct rte_eth_dev_data *data = edev->data; struct rte_eth_devargs eth_da; - uint16_t id, nc, np, nf, i, c, p, f; + uint16_t id = 0, nc, np, nf, i, c, p, f; if ((data->dev_flags & RTE_ETH_DEV_REPRESENTOR) == 0) return -1; /* not a representor port */ -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:39.698642100 +0800 +++ 0035-ethdev-fix-build-with-LTO.patch 2023-04-09 21:45:38.619042200 +0800 @@ -1 +1 @@ -From cdd7ab072d1e662b1d06840447e7d1b8ab8946e3 Mon Sep 17 00:00:00 2001 +From 00af2661ac7a56f1f093cb94c4a702ac971b8fe7 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit cdd7ab072d1e662b1d06840447e7d1b8ab8946e3 ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org @@ -24 +26 @@ -index 8b84277954..69b6f4de1d 100644 +index dc8a8637e1..ea09ef90cb 100644 @@ -27 +29 @@ -@@ -716,6 +716,7 @@ Konstantin Ananyev