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 CB7ECA00C5 for ; Wed, 20 Jul 2022 10:24:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C673F40697; Wed, 20 Jul 2022 10:24:22 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2067.outbound.protection.outlook.com [40.107.92.67]) by mails.dpdk.org (Postfix) with ESMTP id 4D1DB4003C for ; Wed, 20 Jul 2022 10:24:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HRgdx6QARZFi99nEJBKluh+Fox1Bl+6MW6i6LXr8vbI78DayKh2uveZ+NMpLgdKsP81wNvRFjjy8+YR4LplENuPIYFuYf8kA5i60IBpYtIoqgXv5ZCeX2UIjx1Pnny7grQi9rpTk5tiMjkqQfy7tsvDQrS4XbWYihnIPDGjlmeulllaPyuTlRhK95mhhgA00u96JLvfOqjNSsyE9eDauPSmw8C7Kz/p6xY+D6Rbqj6jibw/SaFAxmSg6NtgYibwxXAObEuPT4WiccUbh7u3GXeaV6fMKBtzwHxpw9CKSX9HkNdyjD/1TGowDUo3OvNoYobAI4kn2rreBwmWpXnMcWg== 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=Pn4g9d9Q76d3iAfBpAE1IFMJEeNIEawVEFax4uHQHEY=; b=gkdwlDn+hDRgu01TLBRJkBe/S1uaG5QPiop5C4QAkD2HJN6YOAzxsBFl7WfTu4KXsNuGThU4f+9oWZqKkfZPolj6R3fui8LNwY9aJ5HeN/5dwtgjqZnysdBs4Tpi+RSHztR1+KL2K/YDKHxf8znsUPA3mqjkVS7P5bJX754uN6YlX+i1G2BBwOSgrOiD7MQ0Eq9M5VUCnjW1S07BRMlqHKRb2M7pIXLujdpfyBAzdvNpc0VeAdPF4aXrHZ+nXIOv8vOEw3Frb+XOvNEhceJyoPN5ys6jni+Hj1ZAcSATU4mzkBNrOjaAikS2P3Bdlje/+Hj1E+D0EO8kpeC0isnDVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.235) smtp.rcpttodomain=dpdk.org 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=Pn4g9d9Q76d3iAfBpAE1IFMJEeNIEawVEFax4uHQHEY=; b=FUUFPnUa7qNoN1OCabp5UeTnSh1Rv5t+lJL151DOAGGNscpx9Amdoy3V2y5/DF5cGOrjTwU8731FkFKHF5Tu+stBejER0ZPGb98mB/D9R3dYlsFVE0+T3wIoPR09epw2sFCohB9c87lmRK6dqjjJJbje2bSu5Use6g2hKZL77Cluizq1GAVN0F0QF7edvBQY1zS4Bo7I7RzNGXj5JBlJMXEwU8dQa+VHSDZLKkiMbR0cn7p9KGS+UNi2vYnqfuLRXrOCK8reoPK3JuxiRjRxzeUAvopS8TPXBDAlv+BDFLzX5Q9lH0wxEvuWbQBPiFrnt4mQ4H6K+p3J3bS4rxqWcA== Received: from MW4PR04CA0063.namprd04.prod.outlook.com (2603:10b6:303:6b::8) by MWHPR12MB1869.namprd12.prod.outlook.com (2603:10b6:300:111::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.20; Wed, 20 Jul 2022 08:24:19 +0000 Received: from CO1NAM11FT025.eop-nam11.prod.protection.outlook.com (2603:10b6:303:6b:cafe::9b) by MW4PR04CA0063.outlook.office365.com (2603:10b6:303:6b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.17 via Frontend Transport; Wed, 20 Jul 2022 08:24:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.235) 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 12.22.5.235 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.235; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.235) by CO1NAM11FT025.mail.protection.outlook.com (10.13.175.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5458.17 via Frontend Transport; Wed, 20 Jul 2022 08:24:19 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 20 Jul 2022 08:24:19 +0000 Received: from nvidia.com (10.126.231.35) 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.26; Wed, 20 Jul 2022 01:24:17 -0700 From: Xueming Li To: Ferruh Yigit CC: , Devendra Singh Rawat , dpdk stable Subject: patch 'net/qede: fix build with GCC 13' has been queued to stable release 20.11.6 Date: Wed, 20 Jul 2022 11:20:58 +0300 Message-ID: <20220720082132.3954126-29-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220720082132.3954126-1-xuemingl@nvidia.com> References: <20220621080301.2315720-1-xuemingl@nvidia.com> <20220720082132.3954126-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3bd654d5-0bee-4f89-a02c-08da6a293e3e X-MS-TrafficTypeDiagnostic: MWHPR12MB1869:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?B?Rnozem95UVFLaVdEUWczR29ZRSt1TXFRbmxQYXFMbzlpSTIrbmRmZWNzcFFO?= =?utf-8?B?YzcwcU9NMFBkQ05ycDBEVDMvOUx1RFZjMVdRVW14cGliRkJzai9wZytMR2Ir?= =?utf-8?B?blBuaElLU0VmeWU0UElUSFNaTG53WFB0MUxZRmk4QWl2dkZncHl3WW5JNTlR?= =?utf-8?B?Qy9UVGhaU05UMi9zZ2FjT1FVVWNSOHlPbHkyeEl1dnBxbm1KdFo3aDREWU1J?= =?utf-8?B?RW12U2FGck9hSXk5OWNQWTI3K1FCNEp4N0RJWDFOOWxmSEoxZnJLVERnZ2FD?= =?utf-8?B?MG51QVRqUFhyNndmTUcxaSsyZEMrVm1xSTROUUdCMktkYmRaNWFkNkVpK0Ni?= =?utf-8?B?UG1tOHZGb09PRE52YnVuL2R1eDQrMHFlRFFhZzVpZlE1V2ZNdFRBZ2NCdzR6?= =?utf-8?B?bTZWRjN2dzdmbm0rSWhjRnZDM1piWTZhL3YzOWIvRWE1cG5qbFhxY2g5WkZP?= =?utf-8?B?djVUcTYvSFRiZGVEdVptVEpERnFjaE5ld2lCOTIrNm01VmtMU3BmUk5SYXE2?= =?utf-8?B?eXp4ZVo1cGptelFEMWcycXdSNHZ3dU1pRkhESi9XQVY5YTJtVnNPRHBjZEYv?= =?utf-8?B?UWtUcVpCWVMwa1lLa0VtTE9CZjViVi9ENTdvNjhFYkFLSXBBSEJRdXdKdTkv?= =?utf-8?B?QkdlTUwrSExtYXhaVnhSSFBiVlJ6Ri8xWkFibGRTenAwdmduSXRsS2xBcmxO?= =?utf-8?B?U0M2MlV3bHRPWG1OZVc0SnFTNFFUUUFyRVpPYzQ0UmZJQ0FRNG8vYWVLM3Nt?= =?utf-8?B?cDZ3cUlzL1FLN1ZPcXJxSTNGQXl0RDhIanF2eHZkV3NHZHlUSDl5NjRRSzJx?= =?utf-8?B?QWpSOWpMZUpkNWZQRlJyU2c1a2RoK3Z6S3JWUG9icktnNzVhUXYxMlNhNnd4?= =?utf-8?B?aWFuMFhWTm5wSmNnMml3eXJXL0NjQTV4SkJlWitXSjZKQTZFMnpGVVdUazk0?= =?utf-8?B?TlM0SE1LTWM2aTNHeTJKK2tuNXVFL0NtYWtZR3JWYlBJMjZrL3BFZFdIbVVw?= =?utf-8?B?Y0FMZmhISEg2NnpYdWh0VXAxRks5SWNTcGdJSW8wb2tXS0owc2xBK1pHUzlW?= =?utf-8?B?TzV6SWt0WEJmdGZtdFk3anpMWld4aTRJV1lHUi9sUkozTERYUlExN1dpMnFq?= =?utf-8?B?dUNJLzBUeXlDUm9NcUJEekFHT2RVOW1KelJ0LzIzeTRHWjJkMnBUSXJoOFdT?= =?utf-8?B?bVZhYkZ1WVhYQWdMODBFdzRuNnlBRFNrR0MxSTlMT3p1R3FUazEzV3dRN205?= =?utf-8?B?WnNxc2s0RHRBL2sxYTFPSWRzMGJYTHQzV3VheDdXK0xmYkFpUT09?= X-Forefront-Antispam-Report: CIP:12.22.5.235; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(136003)(346002)(376002)(396003)(39860400002)(40470700004)(46966006)(36840700001)(336012)(70586007)(5660300002)(16526019)(26005)(2616005)(40460700003)(6286002)(426003)(6916009)(4326008)(36756003)(47076005)(186003)(82310400005)(40480700001)(2906002)(1076003)(478600001)(36860700001)(966005)(70206006)(86362001)(81166007)(8936002)(41300700001)(316002)(7696005)(83380400001)(54906003)(6666004)(53546011)(8676002)(356005)(55016003)(82740400003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2022 08:24:19.5591 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3bd654d5-0bee-4f89-a02c-08da6a293e3e X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.235]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT025.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1869 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.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/22/22. 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/b9db1042c38b542426e4ee4780856578f5ecf68a Thanks. Xueming Li --- >From b9db1042c38b542426e4ee4780856578f5ecf68a Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Thu, 16 Jun 2022 18:02:09 +0100 Subject: [PATCH] net/qede: fix build with GCC 13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit 721ef3f54578e33905f75c7196439981dc264289 ] Reproduced with "gcc (GCC) 13.0.0 20220616 (experimental)" Build error: In file included from ../drivers/net/qede/qede_debug.c:9: ../drivers/net/qede/qede_debug.c: In function ‘qed_grc_dump_addr_range’: ../drivers/net/qede/base/ecore.h:95:17: warning: overflow in conversion from ‘int’ to ‘u8’ {aka ‘unsigned char’} changes value from ‘(int)vf_id << 8 | 128’ to ‘128’ [-Woverflow] 95 | ((_value & _name##_MASK) << _name##_SHIFT) | ^ ../drivers/net/qede/qede_debug.c:1907:31: note: in expansion of macro ‘FIELD_VALUE’ 1907 | fid = FIELD_VALUE(PXP_PRETEND_CONCRETE_FID_VFVALID, 1) | ^~~~~~~~~~~ To prevent overflow converting 'fib' to uint16_t, while updating it also updated 'vf_id' to 16 bit too. Fixes: ec55c118792b ("net/qede: add infrastructure for debug data collection") Signed-off-by: Ferruh Yigit Acked-by: Devendra Singh Rawat --- drivers/net/qede/qede_debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/qede/qede_debug.c b/drivers/net/qede/qede_debug.c index 9383a6d677..18f2d988fb 100644 --- a/drivers/net/qede/qede_debug.c +++ b/drivers/net/qede/qede_debug.c @@ -1809,7 +1809,8 @@ static u32 qed_grc_dump_addr_range(struct ecore_hwfn *p_hwfn, u8 split_id) { struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; - u8 port_id = 0, pf_id = 0, vf_id = 0, fid = 0; + u8 port_id = 0, pf_id = 0; + u16 vf_id = 0, fid = 0; bool read_using_dmae = false; u32 thresh; -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-07-20 15:01:00.157302109 +0800 +++ 0029-net-qede-fix-build-with-GCC-13.patch 2022-07-20 15:00:58.721000480 +0800 @@ -1 +1 @@ -From 721ef3f54578e33905f75c7196439981dc264289 Mon Sep 17 00:00:00 2001 +From b9db1042c38b542426e4ee4780856578f5ecf68a Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit 721ef3f54578e33905f75c7196439981dc264289 ] @@ -29 +31,0 @@ -Cc: stable@dpdk.org