From patchwork Tue Jul 30 13:58:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13747427 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2045.outbound.protection.outlook.com [40.107.223.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 911C01A08A2 for ; Tue, 30 Jul 2024 13:59:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.45 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722347971; cv=fail; b=q56H/3X9WtpVIHMzrQh3iBujFmNGp6ATSiivQsgzbHvt4GpXIYREprA9sZpQDyT4x1QNsE1yXroOEgb9ZlELgOoDjnCQPkTvdgLjWLCmoct0NYw9IBm1x3otBEzU3jfxREoHLmtCSKUg50GRpmAi7dC0rOFtezL6XJG2ZFShJUQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722347971; c=relaxed/simple; bh=5099yaD2ENOjIU26614MtrjAdSw4RZdJOAEDbrosduw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=fDvNFWgHdJSUOv0WPTonBhI+tC0YUeZq3AZV04lNehyV9edLxheM0xPiN5N87BkMnv1rikmaNNybI8/O9vqr41kvPEkLNz3h9cpJMQBGi6jrXuIjTRBN0qyzJtP9HlDM5YTsnE2zNG8iGpbyZo/hwII+g6sWocARqiQEy6kH4nw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=gcBNqxor; arc=fail smtp.client-ip=40.107.223.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="gcBNqxor" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=t5veUuQRZoFe5rrpO47RFfo0qHCbJ2ZFEhLAsQjGJtvSinvDtM87uwBPFUPy4GdJ2VpcQPsRbxPlcvSO0oHPmAjC9uDlGlKAQDEgAg3jvu9TXURYTqLt93ccsTUioJZLzoW5Gn32UaSfG8ahWhLkE55vo+itRwyjP2n0UGM6oBMz5tBp/SLnUbcxh+BB7faP7KEE089+rK/4idieONipVIhC5JsH1VPX/guGYtuNPLD0QTaZF1NmLoYqmQWtIGyujHvnFzTxQex5SZTkWYrlYYUO07Sgakzlmd9dPlLj4r/yEYSu2NXnftlg81bLOFeevfNkUyiDul21JLVuH9dekA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=/a0ewk7PQbVxCDeDMFUqOdVr9xK5H7G/5tMva24t0Tg=; b=QcFB+k/mCKSqEiTAzsKqx/UGntHxJ+tBCozLG+2h9Dmi1BhPcQq/zRj5SA18oDeYGuPk12dxkUGXEWqTXatHx3MSShWOJVShUyZ9HYR5ukoEHv2nIFwjcj+S+cdKnhc/MgBa6Vgp1mYEc07bPjAGmSkuKmvNzRCEbfiSrDLrq4UrVLUshqfZOjtNpBwxENBwEkqOlTi1iUPgsyEI1nBcj7D7aaMW8dS7SEwQBSQIIAKkXCcn6oAd8qXovZPy9lHx0jg1P30qD94D6HyGRZBJOp9UstmXZRZwIJff22z0Wn3VgZfiqAjqoeIQdTcKNmAQxeNehLhc8XRhHKrCfNAfCQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=davemloft.net 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 (0) 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=/a0ewk7PQbVxCDeDMFUqOdVr9xK5H7G/5tMva24t0Tg=; b=gcBNqxoreyC9OLyxxfKZ2UK7faFHavwOnUyquYIu+cm+aasQL+Di1PEE0Zume+fCEUbDqrWJYNtFun+yqdXsgIRcaHpIEnJWdF9CqCxTtQLaD8Ncbh0TYbELFjsGWsjqX4sxtfrxZA9DKZ8GVqJc+/SW0IRUXF8sbdA9pw/Mj0QpDWcxTxEZWTeoy6UlvZrSMsUJAt66ELLNTpHaIRKjJWNrS882faiAdYHFL889+HHRq8onhoVkz5zZBQRAnai1w3u5H2PC+UPy6ZPBykS+JIWGjGQqs3RG9i8YVSxRzritSjG43BJ+nHW5BERSm+DkjV5v7w2CmBdA9hztCu1GgQ== Received: from PH8PR20CA0016.namprd20.prod.outlook.com (2603:10b6:510:23c::20) by PH0PR12MB8008.namprd12.prod.outlook.com (2603:10b6:510:26f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 13:59:25 +0000 Received: from SA2PEPF000015C6.namprd03.prod.outlook.com (2603:10b6:510:23c:cafe::8d) by PH8PR20CA0016.outlook.office365.com (2603:10b6:510:23c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.34 via Frontend Transport; Tue, 30 Jul 2024 13:59:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by SA2PEPF000015C6.mail.protection.outlook.com (10.167.241.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.19 via Frontend Transport; Tue, 30 Jul 2024 13:59:24 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 30 Jul 2024 06:59:11 -0700 Received: from fedora.mtl.com (10.126.230.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.1544.4; Tue, 30 Jul 2024 06:59:06 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Vadim Pasternak , Ido Schimmel , Petr Machata , Subject: [PATCH net-next 00/10] mlxsw: core_thermal: Small cleanups Date: Tue, 30 Jul 2024 15:58:11 +0200 Message-ID: X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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-TrafficTypeDiagnostic: SA2PEPF000015C6:EE_|PH0PR12MB8008:EE_ X-MS-Office365-Filtering-Correlation-Id: 77bd9e4e-c58b-4caa-2346-08dcb09fd1b9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|1800799024|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?GXpUyC6GOR3Jp6bLwatHXGM2xVUtNpy?= =?utf-8?q?JyIuhl1gKS0RB8YaBrHYsUNFKJPjHof1MXaviQRfoDFWUaQhAY2DsTiOT8H7OrwaX?= =?utf-8?q?8si8A4nb9hhl6MVOzFTrFeT71lIL45tnl3D6YTlzGMjFUqA86vBN0kPzYJvoLVqSU?= =?utf-8?q?sEkfoewArfHHz5pgJJ3gsHRTwZUkWF9PRSOvWzG4VvvzyQjK76pWXnhrPkadoqnWa?= =?utf-8?q?szxmacL54W6nwvX3nLdBC0fpTov9L8IeM9HsBrikX1AWm5k3m2om6Ud1dVOBbcaud?= =?utf-8?q?b22UFySTvYziq0BiZO0jSl+J+G/zhyeLS3KL4MUNTlMe9UD95UYFcd1Gdqo+0Hn0O?= =?utf-8?q?oXN8B21BpMV/zC8pwBx3NJcxlvToN9fKbEb504N0Fug86wNtPLfSuwPxq2pIBT5xM?= =?utf-8?q?3mmRienAObYLF6ryO1ewJKNSmtP5R96IA5MeRxt4GHm0EsVMibao9JrqvN8hJOjDP?= =?utf-8?q?YuTsyEeVtvNQI+P2skS/gnm/qjaDgwOQ1vBPAzJgID9Ixc4VgvMqbeliTDbIq4o41?= =?utf-8?q?xUTuaNgxB8tflclzS1GuGJrizTdqS4RzeMIZFaDylrcqgnhv9bURyylqzIaEUu0uM?= =?utf-8?q?lAHTbnNjraDr3z1LBfftvhei91WsCX6yu3NzfKLzJ/Z2Ed+8ksRnCzENsGoGESfKe?= =?utf-8?q?ELRhYMzD4bu6FSU57XLBf8HzFV5BY4GsPTJGSLqiw4TrBx8oNjXap2AQbR9p87/b8?= =?utf-8?q?DjBJi5Lw4SFd7/Jjb5XuYABWcZUXqyBNrj4ndPf+t+/T4CmN9QHpw1CfYt/Mkk8Xy?= =?utf-8?q?1gP8On50NHE8fCM7ouudW029cMb97oNdaLf1ZwgYEfnD5eUl4uM4X9wsHv+6dBewg?= =?utf-8?q?oedjmlvH8C/DjvcyglhFxZydTVMwbPzvTa9NbqO0QlsKpKnvl+qLW1vULazdm02H/?= =?utf-8?q?FiNylwKBThBbCbJqTIfRYs1HT4ALpj9Zo9Gkw4yzNitu4RPS3aZYRXxUhE6YR79v2?= =?utf-8?q?y/aKiiKX5751a5QP8wVrznlAkioCNAU9Nry8gd7g63vLd3GmISHmNShrtgOB+RIoX?= =?utf-8?q?tq5hOiRUyxZ9OFOdCAtfvOWhdLQDvUgBLFoktMWNAfeRIIIig7ms/mc+cbTJbwoZP?= =?utf-8?q?aoaA94tXYdlHusMHR1k/yL/N94TUP8p8fJegSANn3t4+FJ8BuaEpNI3dbyHkaCDO5?= =?utf-8?q?adv0/yI9f5yl5e22F6W2JSB0ml9UgXrk8BxDYTIhP2dG76A5XgOvouNg/9c9oNutm?= =?utf-8?q?LenksHezzb4TbfakDaJIQCq4tniHXK9UHbwsTFZYpnvVILoP7N+azlvpWaLItJq+Q?= =?utf-8?q?74mDBsqLI6/nCcVJYpFHUXo3jKc+MqhdTk1NgfFLFwbKRVdUrGxrT6zcTWW8RSiwy?= =?utf-8?q?cF139WIYMuGcS5dh3yvhZDfF8W12NQBzv/629lO0XRvFEOh7UC314a18liN4qfyng?= =?utf-8?q?qT2400jPxvU?= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230040)(36860700013)(1800799024)(376014)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 13:59:24.3221 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77bd9e4e-c58b-4caa-2346-08dcb09fd1b9 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.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SA2PEPF000015C6.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8008 X-Patchwork-Delegate: kuba@kernel.org Ido Schimmel says: Clean up various issues which I noticed while addressing feedback on a different patchset. Ido Schimmel (10): mlxsw: core_thermal: Call thermal_zone_device_unregister() unconditionally mlxsw: core_thermal: Remove unnecessary check mlxsw: core_thermal: Remove another unnecessary check mlxsw: core_thermal: Fold two loops into one mlxsw: core_thermal: Remove unused arguments mlxsw: core_thermal: Make mlxsw_thermal_module_{init, fini} symmetric mlxsw: core_thermal: Simplify rollback mlxsw: core_thermal: Remove unnecessary checks mlxsw: core_thermal: Remove unnecessary assignments mlxsw: core_thermal: Fix -Wformat-truncation warning .../ethernet/mellanox/mlxsw/core_thermal.c | 43 ++++++------------- 1 file changed, 12 insertions(+), 31 deletions(-) Reviewed-by: Wojciech Drewek