public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hwmon: Remove stale CONFIG_SENSORS_SBRMI Makefile reference
@ 2026-04-26  0:03 Sasha Levin
  2026-04-30 18:19 ` Guenter Roeck
  0 siblings, 1 reply; 2+ messages in thread
From: Sasha Levin @ 2026-04-26  0:03 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: linux-hwmon, linux-kernel

kconfiglint reports:

  X001: CONFIG_SENSORS_SBRMI referenced in Makefile but not defined
        in any Kconfig

The SB-RMI hardware monitoring driver was originally introduced in
commit 5a0f50d110b3 ("hwmon: Add support for SB-RMI power module") with
both a Kconfig entry (CONFIG_SENSORS_SBRMI) and a Makefile line
(obj-$(CONFIG_SENSORS_SBRMI) += sbrmi.o) in drivers/hwmon/.

Commit e156586764050 ("hwmon/misc: amd-sbi: Move core sbrmi from hwmon to
misc")
moved the driver to drivers/misc/amd-sbi/ to support additional
functionality beyond hardware monitoring. That commit correctly removed the
Kconfig entry from drivers/hwmon/Kconfig, moved the source file
drivers/hwmon/sbrmi.c to drivers/misc/amd-sbi/sbrmi.c, and created new
Kconfig/Makefile entries in drivers/misc/amd-sbi/ with a renamed symbol
(CONFIG_AMD_SBRMI_I2C).

However, the Makefile line in drivers/hwmon/Makefile was not removed in
that commit. The orphaned line references a CONFIG symbol that no longer
exists and a source file that is no longer present, so it has no effect
on the build — but it is dead code that should be cleaned up.

Remove the stale Makefile reference.

Assisted-by: Claude:claude-opus-4-6 kconfiglint
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/hwmon/Makefile | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hwmon/Makefile b/drivers/hwmon/Makefile
index 4788996aa1374..982ee2c6f9deb 100644
--- a/drivers/hwmon/Makefile
+++ b/drivers/hwmon/Makefile
@@ -201,7 +201,6 @@ obj-$(CONFIG_SENSORS_PWM_FAN)	+= pwm-fan.o
 obj-$(CONFIG_SENSORS_QNAP_MCU_HWMON)	+= qnap-mcu-hwmon.o
 obj-$(CONFIG_SENSORS_RASPBERRYPI_HWMON)	+= raspberrypi-hwmon.o
 obj-$(CONFIG_SENSORS_SBTSI)	+= sbtsi_temp.o
-obj-$(CONFIG_SENSORS_SBRMI)	+= sbrmi.o
 obj-$(CONFIG_SENSORS_SCH56XX_COMMON)+= sch56xx-common.o
 obj-$(CONFIG_SENSORS_SCH5627)	+= sch5627.o
 obj-$(CONFIG_SENSORS_SCH5636)	+= sch5636.o
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hwmon: Remove stale CONFIG_SENSORS_SBRMI Makefile reference
  2026-04-26  0:03 [PATCH] hwmon: Remove stale CONFIG_SENSORS_SBRMI Makefile reference Sasha Levin
@ 2026-04-30 18:19 ` Guenter Roeck
  0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2026-04-30 18:19 UTC (permalink / raw)
  To: Sasha Levin; +Cc: linux-hwmon, linux-kernel

On Sat, Apr 25, 2026 at 08:03:19PM -0400, Sasha Levin wrote:
> kconfiglint reports:
> 
>   X001: CONFIG_SENSORS_SBRMI referenced in Makefile but not defined
>         in any Kconfig
> 
> The SB-RMI hardware monitoring driver was originally introduced in
> commit 5a0f50d110b3 ("hwmon: Add support for SB-RMI power module") with
> both a Kconfig entry (CONFIG_SENSORS_SBRMI) and a Makefile line
> (obj-$(CONFIG_SENSORS_SBRMI) += sbrmi.o) in drivers/hwmon/.
> 
> Commit e156586764050 ("hwmon/misc: amd-sbi: Move core sbrmi from hwmon to
> misc")
> moved the driver to drivers/misc/amd-sbi/ to support additional
> functionality beyond hardware monitoring. That commit correctly removed the
> Kconfig entry from drivers/hwmon/Kconfig, moved the source file
> drivers/hwmon/sbrmi.c to drivers/misc/amd-sbi/sbrmi.c, and created new
> Kconfig/Makefile entries in drivers/misc/amd-sbi/ with a renamed symbol
> (CONFIG_AMD_SBRMI_I2C).
> 
> However, the Makefile line in drivers/hwmon/Makefile was not removed in
> that commit. The orphaned line references a CONFIG symbol that no longer
> exists and a source file that is no longer present, so it has no effect
> on the build — but it is dead code that should be cleaned up.
> 
> Remove the stale Makefile reference.
> 
> Assisted-by: Claude:claude-opus-4-6 kconfiglint
> Signed-off-by: Sasha Levin <sashal@kernel.org>

Applied.

Thanks,
Guenter

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-30 18:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-26  0:03 [PATCH] hwmon: Remove stale CONFIG_SENSORS_SBRMI Makefile reference Sasha Levin
2026-04-30 18:19 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox