From patchwork Thu May 23 18:26:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yazen Ghannam X-Patchwork-Id: 13672168 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2078.outbound.protection.outlook.com [40.107.223.78]) (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 6ADB583A06; Thu, 23 May 2024 18:27:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.78 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716488839; cv=fail; b=QH+dyKyGQlvAXQxgL/PACplGwTQwugoA2MWgSyRwLaYkN9egC9Xe+e51560GvGUiho/ZGNwMTucvzMpMcu2fOJgT16gT16Pr8+Rj4fhk1E11mDOCUqVTw8r8P7Q5BgtULXu2U0GAriw+AOmwnQ+cTomJI89E4BJ4zqppf+KuNA8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716488839; c=relaxed/simple; bh=OiKP1+GNYSbg1+OE5L0dnBHK6al0w4Wqt/Oqdqnncso=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=i1haJ1Apxg43qHPn5wetTrw8xJaHl4jADVLyV8X6hwIrySnCNWlcmZX+cHCbvGVytg8of/bbzv7w1cvGBzf9CpPb3IYy0iFzy2n0x+Hgcy22nKDVZV06f3l/TrIURM7KN9DP+zzSN84564tzEPyJCfT7W5GOKP/3vKr2jPJJlRA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=Vn5EbSLO; arc=fail smtp.client-ip=40.107.223.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="Vn5EbSLO" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MVDpAj+NptLVDss+qy4RcPjliy6eAYWy9DLRY1KpG4yiJfyB5YyaZO1d3w3JKAW1kd5AQLmQeSkLYvrcZEgNt6oZbdlDW47elZFrsPRCYM9YhUyLvyYe5g4F5fuELKpa/KTyFbqYtCXN8cCZ0S/W/rxZ2qpBQPRLBPuS00fzoj0d4mso1NcKAhe0/VpQMjWtVkUAmbQqubt7aMCKTMvTkda30NTdSrB8mC5KPga0Q+MoVNMuulk/6hCS8oGGna2WKZbX7Z4xKnSUlS/oCAkwzJVr0Gk8gvh0f+ZgjvKyvIW9KJfpzM070rMM0GI5cWWMAGsL2bcFfgZkRMCMZA+aPQ== 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=1J9+2SDlidu/RlDKIHhb76jZjeYkl9ua0Ft+dX8dBC8=; b=aL2jXBUHUEiUwTAOCEXS5iijWYCMZF7G1vHWrWJ3MhzRvp63DQ826gc7BzwPnwIB1eksixyJmcSP7nQLOupIpa8jEon21oe5cz7qKrmMRdlSdv+89ozj281jFlj5Ml4JQc/cR2UWjyj59LOOy3Scxj3W9UFrGH7QxkWidsArowuFWqSTepvvqIXDd4yw+SM4UtFWXmXzR28xSIqIPQojt7wh5xjIwkidzcK6att7w29hqPJswYvBQS6zeD74cwUQbEwRQhPBfLVXreo3qFTpxgOuekGJdw4k7+AnXtAaV7DjOEfDB6UofSaV/SkVFAV2ZusaFSjIaky+63KAp0Ol/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1J9+2SDlidu/RlDKIHhb76jZjeYkl9ua0Ft+dX8dBC8=; b=Vn5EbSLOBvFs1msWIWqu7HXNpIcYk7sbfKl2wEfQXEdDKP21jWvtwNMPlCGuQ7dulj2weSYERGvJYRlvBvjIbdBmYoF00e5AlQwSlkatCeRkNbVkqjSMRyt+vjdYBaqWYC2ssQ2zSf/2HQhcnEnJd2gWyjFtBQniKHFJsCGUExw= Received: from CH2PR19CA0025.namprd19.prod.outlook.com (2603:10b6:610:4d::35) by DM4PR12MB6231.namprd12.prod.outlook.com (2603:10b6:8:a6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.18; Thu, 23 May 2024 18:27:16 +0000 Received: from CH3PEPF00000012.namprd21.prod.outlook.com (2603:10b6:610:4d:cafe::50) by CH2PR19CA0025.outlook.office365.com (2603:10b6:610:4d::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.20 via Frontend Transport; Thu, 23 May 2024 18:27:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH3PEPF00000012.mail.protection.outlook.com (10.167.244.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.0 via Frontend Transport; Thu, 23 May 2024 18:27:15 +0000 Received: from quartz-7b1chost.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 23 May 2024 13:27:11 -0500 From: Yazen Ghannam Date: Thu, 23 May 2024 13:26:58 -0500 Subject: [PATCH v3 7/8] hwmon: (k10temp) Remove unused HAVE_TDIE() macro Precedence: bulk X-Mailing-List: linux-edac@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240523-fix-smn-bad-read-v3-7-aa44c622de39@amd.com> References: <20240523-fix-smn-bad-read-v3-0-aa44c622de39@amd.com> In-Reply-To: <20240523-fix-smn-bad-read-v3-0-aa44c622de39@amd.com> To: Guenter Roeck , , Yazen Ghannam CC: Mario Limonciello , , , X-Mailer: b4 0.13.0 X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PEPF00000012:EE_|DM4PR12MB6231:EE_ X-MS-Office365-Filtering-Correlation-Id: 0596a4e2-43a2-42b4-fc28-08dc7b55f8f2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|82310400017|376005|1800799015|36860700004; X-Microsoft-Antispam-Message-Info: =?utf-8?q?SllMPnhuFFQ9iIH3+eTTn3t5AGtyq5L?= =?utf-8?q?nAm8vuS4vuXAIYcOHBdsVDesd7J9NlPh2XtmRmgXaxHMG9ldehc8nJlgXDBSP7gKU?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xvqrmE+zvvU8I42CS?= =?utf-8?q?XLiHqzGbg85efYl/O/0t6nw7eBIgkk27RYius+nI5MdEC5f1upJB6sUR2AIpnqgk6?= =?utf-8?q?rcH/pHLK68BZNS3axJlacDavUnlIdS22kf5sWvAEwWO5KZO1N2tb4iwp8J0CjPLyy?= =?utf-8?q?jvthcvVlQCov4IaZHS9rEhXczN7NpgWeWIs/w122rra2hPAuutfKkWycT7J7NU83J?= =?utf-8?q?lRm/dwEDYlQtc8mHpxlgK/MZqulHE7kBuCiTi7nht/bLGwGwGO3Thv1hmsGQVQ6r2?= =?utf-8?q?ItiXMyktmqbbebfp4/AOoIlRgiK71G/LEf1ZHS/5aTDhF1WVaDQk1h3prztHAFVq/?= =?utf-8?q?iCkPdFpe7gf4dVfSa1RwFL/ZJmrJXBUUOeeuZc9/4p9xSBr9HeisIZhitpJLmuypw?= =?utf-8?q?3hU0zw3ON9SU?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(82310400017)(376005)(1800799015)(36860700004);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 18:27:15.8253 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0596a4e2-43a2-42b4-fc28-08dc7b55f8f2 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH3PEPF00000012.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6231 ...to address the following warning: drivers/hwmon/k10temp.c:104:9: warning: macro is not used [-Wunused-macros] No functional change is intended. Signed-off-by: Yazen Ghannam Acked-by: Guenter Roeck --- drivers/hwmon/k10temp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index 6deb272c7cef..a2d203304533 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -101,7 +101,6 @@ struct k10temp_data { #define TCCD_BIT(x) ((x) + 2) #define HAVE_TEMP(d, channel) ((d)->show_temp & BIT(channel)) -#define HAVE_TDIE(d) HAVE_TEMP(d, TDIE_BIT) struct tctl_offset { u8 model;