Skip to contentSkip to conversation

leds: asus-aura-scsi: add CONFIG_SCSI_DH dependency

PATCH Applied Arnd Bergmann 4 participants 4 messages Nov 4 – Nov 17

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leds: asus-aura-scsi: add CONFIG_SCSI_DH dependency

From: Arnd Bergmann <[email protected]>

Without the device handler support, the driver fails to link:

ERROR: modpost: drivers/leds/rgb/leds-asus-aura-scsi.ko: symbol 'scsi_register_device_handler' undefined!

Add a Kconfig dependency to only show the symbol if it can be enabled.

Fixes 6173959c7d4d ("leds: asus-aura-scsi: Add ASUS Aura RGB LED driver for ROG NVMe enclosures")
---
 drivers/leds/rgb/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/leds/rgb/Kconfig +1 -1
index 983f50b7ed2d..3f6786616a7d 100644
@@ -4,7 +4,7 @@ if LEDS_CLASS_MULTICOLOR
 
 config LEDS_ASUS_AURA_SCSI
 	tristate "ASUS Aura RGB LEDs on ROG external NVMe enclosures"
-	depends on SCSI
+	depends on SCSI && SCSI_DH
 	help
 	  Say Y here if you want to control the RGB LEDs of ASUS ROG
 	  external NVMe enclosures such as the ROG STRIX Arion. The LEDs
Signature · 1 line
2.53.0
#1 lore raw
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] leds: asus-aura-scsi: commit subject description is not capitalized --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] leds: asus-aura-scsi: commit subject description is not capitalized --

commit e05e6430efbaa79461253555061a0b258c6afe65
Author: Arnd Bergmann <[email protected]>

leds: asus-aura-scsi: add CONFIG_SCSI_DH dependency

This commit adds a Kconfig dependency on SCSI_DH to LEDS_ASUS_AURA_SCSI in drivers/leds/rgb/Kconfig so the driver does not fail to link when scsi_register_device_handler is unavailable.

Quoted 11 lines

leds: asus-aura-scsi: add CONFIG_SCSI_DH dependency

Without the device handler support, the driver fails to link:

ERROR: modpost: drivers/leds/rgb/leds-asus-aura-scsi.ko: symbol 'scsi_register_device_handler' undefined!

Add a Kconfig dependency to only show the symbol if it can be enabled.

Fixes 6173959c7d4d ("leds: asus-aura-scsi: Add ASUS Aura RGB LED driver for ROG NVMe enclosures")

[Severity: Low]
This isn't a bug, but in the commit subject for this LEDS_ASUS_AURA_SCSI change in drivers/leds/rgb/Kconfig, should the description after the "leds: asus-aura-scsi: " prefix start with a capital letter to match the LED subsystem convention (i.e., "leds: asus-aura-scsi: Add CONFIG_SCSI_DH dependency")?

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Acked-by on v1 1/1
#2 lore raw
In reply to Arnd Bergmann
Quoted 6 lines · Arnd Bergmann

Without the device handler support, the driver fails to link:

ERROR: modpost: drivers/leds/rgb/leds-asus-aura-scsi.ko: symbol 'scsi_register_device_handler' undefined!

Add a Kconfig dependency to only show the symbol if it can be enabled.

Correct, the handler registration lives under SCSI_DH, so the driver cannot link without it. My Kconfig entry missed the dependency.

maintainer Applied
#3 lore raw

Re: (subset) [PATCH] leds: asus-aura-scsi: add CONFIG_SCSI_DH dependency

In reply to Arnd Bergmann
Quoted 8 lines · Arnd Bergmann

Without the device handler support, the driver fails to link:

ERROR: modpost: drivers/leds/rgb/leds-asus-aura-scsi.ko: symbol 'scsi_register_device_handler' undefined!

Add a Kconfig dependency to only show the symbol if it can be enabled.

[...]

Applied, thanks!

[1/1] leds: asus-aura-scsi: add CONFIG_SCSI_DH dependency

      commit: 1b5298e11965bbac7e903314db1789dc736a1668

--
Lee Jones [李琼斯]