mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "tip-bot2 for Yazen Ghannam" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Yazen Ghannam <yazen.ghannam@amd.com>,
	"Borislav Petkov (AMD)" <bp@alien8.de>,
	Guenter Roeck <linux@roeck-us.net>,
	x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: x86/misc] hwmon: (k10temp) Rename _data variable
Date: Wed, 12 Jun 2024 20:24:22 -0000	[thread overview]
Message-ID: <171822386297.10875.859676357459803879.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20240606-fix-smn-bad-read-v4-8-ffde21931c3f@amd.com>

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@amd.com>
AuthorDate:    Thu, 06 Jun 2024 11:13:01 -05:00
Committer:     Borislav Petkov (AMD) <bp@alien8.de>
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@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
---
 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;
 

      reply	other threads:[~2024-06-12 20:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-06 16:12 [PATCH v4 0/8] Enhance AMD SMN Error Checking Yazen Ghannam
2024-06-06 16:12 ` [PATCH v4 1/8] EDAC/amd64: Remove unused register accesses Yazen Ghannam
2024-06-12 20:24   ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
2024-06-06 16:12 ` [PATCH v4 2/8] EDAC/amd64: Check return value of amd_smn_read() Yazen Ghannam
2024-06-12 20:24   ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
2024-06-06 16:12 ` [PATCH v4 3/8] hwmon: (k10temp) " Yazen Ghannam
2024-06-12 20:24   ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
2024-06-06 16:12 ` [PATCH v4 4/8] x86/amd_nb: Enhance SMN access error checking Yazen Ghannam
2024-06-12 20:24   ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
2024-06-06 16:12 ` [PATCH v4 5/8] hwmon: (k10temp) Define helper function to read CCD temp Yazen Ghannam
2024-06-12 20:24   ` [tip: x86/misc] hwmon: (k10temp) Define a helper function to read CCD temperature tip-bot2 for Yazen Ghannam
2024-06-06 16:12 ` [PATCH v4 6/8] hwmon: (k10temp) Reduce k10temp_get_ccd_support() parameters Yazen Ghannam
2024-06-12 20:24   ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
2024-06-06 16:13 ` [PATCH v4 7/8] hwmon: (k10temp) Remove unused HAVE_TDIE() macro Yazen Ghannam
2024-06-12 20:24   ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
2024-06-06 16:13 ` [PATCH v4 8/8] hwmon: (k10temp) Rename _data variable Yazen Ghannam
2024-06-12 20:24   ` tip-bot2 for Yazen Ghannam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=171822386297.10875.859676357459803879.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=bp@alien8.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=x86@kernel.org \
    --cc=yazen.ghannam@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®