Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp86051lqb; Thu, 23 May 2024 11:28:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGcrKwu+oT2MD3o4OuA5cQM2h7Kxr7c2ivei0gPuxU1lEWcsVh52lL+uU4KeC8vrwBo9cvcxAH+JbZnpaqXzYC4S/w9v0eKdGK/uBpWg== X-Google-Smtp-Source: AGHT+IHn6wgzOA30oIAwhoWkvosr8sCYo86JZVSw0i10urWvpHIFmwtgzqZmLkXa73tBgU41CmYj X-Received: by 2002:ae9:c10f:0:b0:792:ff71:3f27 with SMTP id af79cd13be357-794ab087a67mr2586585a.32.1716488931750; Thu, 23 May 2024 11:28:51 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-7930181593bsi2180248485a.416.2024.05.23.11.28.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 11:28:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187877-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@amd.com header.s=selector1 header.b="z0V4//K0"; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-187877-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187877-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6DF571C21749 for ; Thu, 23 May 2024 18:28:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4872184DF0; Thu, 23 May 2024 18:27:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amd.com header.i=@amd.com header.b="z0V4//K0" Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2061.outbound.protection.outlook.com [40.107.102.61]) (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 48A3C84A24; Thu, 23 May 2024 18:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.102.61 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716488843; cv=fail; b=tRxNUiqEv+jpIReKjVL+CAIbYr8d1XLqjKCVGL/gJrSfQF50ppZV1HNoxl/woJKBrdgzAyrvBUsNC2q1oLC2oLUEpb/raxE7lCs8zl70BVFuyOsjIhzYQm+I4/V4qlBlIhPiCVqX3XHz9M9EFNlv0c8FOq2uv6Shj8nD1/pkbZc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716488843; c=relaxed/simple; bh=oB2R3j2lKRv63IrZ0oiRycPwUr7KbwNgetf4mRprZh8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=IYlwrJ7qQc+X2hckNYnwW2rxfOG/8Q88Dg9E+2B2ZTQ6IDdlpKyw+g4StQ7ByZ6A3FsDlD08mx9KX0Gdhcp8vipE5fobF2M6rs8hx/4mzzoRV9gYiJmdeYkmXtCppSNJtWoN2so1Kri42iG4FiTSt0wIgHaTrY7ZOLZf4O39umo= 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=z0V4//K0; arc=fail smtp.client-ip=40.107.102.61 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BbytXOeqYVKcatYuMdTXpNPqL0jQobD3899IWUJMuKauaknkAiNQlo0Pdusn2MRNEqClsE3MSkUadX/Ev8m3ra3R1xuAOGwuti8XFysC9Fj5f2Z7UtOJpY1DfpMN3tTwzr76Aqb/vuX8WX5zdd2nQ3qMqiNuRoi9bYgzQxtjGy1NVToM5KO/LOumXydi2St2ENOIA5Hc8sY27NoGGRxEeS3SDEHtiAvcLSRllRM4dcvo4BMz/UxgpbtJfjNkWBxzxjoXFq8TDSzxYSOVk0TcSDgODagPDSDss9BbhiT4Q76YlHxsZZO3IHJVgnWWxUfyG9RP+omR3GcD4kP9SJvE6Q== 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=sryX850tuSnxY6ts/Md6DOVM3hP9hrrQWRIrYnq0jvI=; b=Af/zDAkTUqwQm6QBwX7kHlQ4+Fm9fu8yJrcjFSKR8lAmE61a64H+7d9SSdRlaOJ79hZQ74BKpTTcZSDd2n23NVvUQ5T8sPpL6PDia0cRhQgYoAw9AJKtnNFKJGRo8U+wcWmyzsVEMjfCvU26ea4oPSENZwKEiFx+ZcG/Gh8tvXyIAy5FrDenl5FMyx1SFnowVBsb7c3cVZwQ34Jhz87HHlqEbK3cW8WKIl2s6lvIb36xjvPenDkokmZUXqiXRYCVKRqcDUbf2RohAkMReQPoNtzykedu/AN8jOgC03OOGh9DbYBWpY6T3xOAEhebcEBFg1sZgKxf0TYb4pIZB6ysvg== 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=sryX850tuSnxY6ts/Md6DOVM3hP9hrrQWRIrYnq0jvI=; b=z0V4//K0pznn7DoSzOCS3e7vqyWElp7Sv6Jf5lPgwKFrgm9xDojzZUrlu+FTc67RlDjdM8nnKhTtk9sx7zbn39y0JTAf9PJU2iyUlCiz6M6oaeiKzPtueZ/3Ve3vC9W+8saKUy+QOxU3Oo5ErHZHV1jgoWzp8TES9SqdT1BC/8I= Received: from DS7PR03CA0260.namprd03.prod.outlook.com (2603:10b6:5:3b3::25) by SJ2PR12MB8181.namprd12.prod.outlook.com (2603:10b6:a03:4f6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.20; Thu, 23 May 2024 18:27:17 +0000 Received: from CH3PEPF00000011.namprd21.prod.outlook.com (2603:10b6:5:3b3:cafe::36) by DS7PR03CA0260.outlook.office365.com (2603:10b6:5:3b3::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.34 via Frontend Transport; Thu, 23 May 2024 18:27:16 +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 CH3PEPF00000011.mail.protection.outlook.com (10.167.244.116) 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:16 +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:59 -0500 Subject: [PATCH v3 8/8] hwmon: (k10temp) Rename _data variable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20240523-fix-smn-bad-read-v3-8-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: CH3PEPF00000011:EE_|SJ2PR12MB8181:EE_ X-MS-Office365-Filtering-Correlation-Id: 262bff4c-fc4a-4c9e-20f6-08dc7b55f986 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|1800799015|82310400017|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?M3ZEWFdib3dFUlRVcWFlTUZvNH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utf-8?B?eURacG5GSGV6TGlrdEZRN0dPR2dxRnlINERlaW9DL2hqNlhKVTVrQzVLUFFv?= =?utf-8?Q?J4dgQHV+Tt2oA?= 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)(36860700004)(1800799015)(82310400017)(376005);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 18:27:16.7896 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 262bff4c-fc4a-4c9e-20f6-08dc7b55f986 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: CH3PEPF00000011.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8181 ..to address the following warning: drivers/hwmon/k10temp.c:273:47: warning: declaration shadows a variable in the global scope [-Wshadow] static umode_t k10temp_is_visible(const void *_data, ^ include/asm-generic/sections.h:36:13: note: previous declaration is here extern char _data[], _sdata[], _edata[]; No functional change is intended. Signed-off-by: Yazen Ghannam --- drivers/hwmon/k10temp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index a2d203304533..543526bac042 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -269,11 +269,11 @@ static int k10temp_read(struct device *dev, enum hwmon_sensor_types type, } } -static umode_t k10temp_is_visible(const void *_data, +static umode_t k10temp_is_visible(const void *drvdata, enum hwmon_sensor_types type, u32 attr, int channel) { - const struct k10temp_data *data = _data; + const struct k10temp_data *data = drvdata; struct pci_dev *pdev = data->pdev; u32 reg; -- 2.34.1