[tip: x86/misc] hwmon: (k10temp) Rename _data variable

From: tip-bot2 for Yazen Ghannam
Date: Wed Jun 12 2024 - 16:24:38 EST


The following commit has been merged into the x86/misc branch of tip:

Commit-ID: efdf761a83cd390523223f58793755f5d60a4489
Gitweb: https://git.kernel.org/tip/efdf761a83cd390523223f58793755f5d60a4489
Author: Yazen Ghannam <yazen.ghannam@xxxxxxx>
AuthorDate: Thu, 06 Jun 2024 11:13:01 -05:00
Committer: Borislav Petkov (AMD) <bp@xxxxxxxxx>
CommitterDate: Wed, 12 Jun 2024 11:40:31 +02:00

hwmon: (k10temp) Rename _data variable

...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,
^
No functional change is intended.

Signed-off-by: Yazen Ghannam <yazen.ghannam@xxxxxxx>
Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>
Acked-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Link: https://lore.kernel.org/r/20240606-fix-smn-bad-read-v4-8-ffde21931c3f@xxxxxxx
---
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 a2d2033..543526b 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;