Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240606-fix-smn-bad-read-v4-8-ffde21931c3f@amd.com

authored by

Yazen Ghannam and committed by
Borislav Petkov (AMD)
efdf761a 0e097f2b

+2 -2
+2 -2
drivers/hwmon/k10temp.c
··· 269 269 } 270 270 } 271 271 272 - static umode_t k10temp_is_visible(const void *_data, 272 + static umode_t k10temp_is_visible(const void *drvdata, 273 273 enum hwmon_sensor_types type, 274 274 u32 attr, int channel) 275 275 { 276 - const struct k10temp_data *data = _data; 276 + const struct k10temp_data *data = drvdata; 277 277 struct pci_dev *pdev = data->pdev; 278 278 u32 reg; 279 279