Skip to contentSkip to conversation

platform/x86: fix kconfig dependency warning for FUJITSU_LAPTOP

PATCH In review Necip Fazil Yildiran 2 participants 2 messages Sep 17, 2020 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86: fix kconfig dependency warning for FUJITSU_LAPTOP

When FUJITSU_LAPTOP is enabled and NEW_LEDS is disabled, it results in the following Kbuild warning:

WARNING: unmet direct dependencies detected for LEDS_CLASS
Depends on [n]: NEW_LEDS [=n]
Selected by [y]:
- FUJITSU_LAPTOP [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y] && ACPI [=y] && INPUT [=y] && BACKLIGHT_CLASS_DEVICE [=y] && (ACPI_VIDEO [=n] || ACPI_VIDEO [=n]=n)

The reason is that FUJITSU_LAPTOP selects LEDS_CLASS without depending on or selecting NEW_LEDS while LEDS_CLASS is subordinate to NEW_LEDS.

Honor the kconfig menu hierarchy to remove kconfig dependency warnings.

Fixes d89bcc83e709 ("platform/x86: fujitsu-laptop: select LEDS_CLASS")
---
 drivers/platform/x86/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/Kconfig +1 -0
index 40219bba6801..3cd2b99628ba 100644
@@ -469,6 +469,7 @@ config FUJITSU_LAPTOP
 	depends on BACKLIGHT_CLASS_DEVICE
 	depends on ACPI_VIDEO || ACPI_VIDEO = n
 	select INPUT_SPARSEKMAP
+	select NEW_LEDS
 	select LEDS_CLASS
 	help
 	  This is a driver for laptops built by Fujitsu:
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 8 lines · Necip Fazil Yildiran

When FUJITSU_LAPTOP is enabled and NEW_LEDS is disabled, it results in the following Kbuild warning:

WARNING: unmet direct dependencies detected for LEDS_CLASS
Depends on [n]: NEW_LEDS [=n]
Selected by [y]:
- FUJITSU_LAPTOP [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y] && ACPI [=y] && INPUT [=y] && BACKLIGHT_CLASS_DEVICE [=y] && (ACPI_VIDEO [=n] || ACPI_VIDEO [=n]=n)

Quoted 8 lines

The reason is that FUJITSU_LAPTOP selects LEDS_CLASS without depending on or selecting NEW_LEDS while LEDS_CLASS is subordinate to NEW_LEDS.

Honor the kconfig menu hierarchy to remove kconfig dependency warnings.

Fixes d89bcc83e709 ("platform/x86: fujitsu-laptop: select LEDS_CLASS")

Thank you, patch looks good to me:

Regards,

Hans

Quoted 17 lines
---
  drivers/platform/x86/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/platform/x86/Kconfig +1 -0
index 40219bba6801..3cd2b99628ba 100644
@@ -469,6 +469,7 @@ config FUJITSU_LAPTOP
  	depends on BACKLIGHT_CLASS_DEVICE
  	depends on ACPI_VIDEO || ACPI_VIDEO = n
  	select INPUT_SPARSEKMAP
+	select NEW_LEDS
  	select LEDS_CLASS
  	help
  	  This is a driver for laptops built by Fujitsu: