leds: asus-aura-scsi: add CONFIG_SCSI_DH dependency
Subsystems (2)
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.
--- drivers/leds/rgb/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/leds/rgb/Kconfig +1 -1
@@ -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
[email protected]
AI reviewThank 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_DHdependencyWithout 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
Kconfigdependency 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")Signed-off-by Arnd Bergmann <[email protected]>
[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
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
Kconfigdependency 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.
Re: (subset) [PATCH] leds: asus-aura-scsi: add CONFIG_SCSI_DH dependency
In reply to Arnd BergmannQuoted 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
Kconfigdependency 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 [李琼斯]