Skip to contentSkip to conversation

platform/x86/fujitsu-laptop: add ACPI_BATTERY dependency

PATCH In review Arnd Bergmann 2 participants 2 messages Feb 28, 2024 – Feb 29, 2024 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86/fujitsu-laptop: add ACPI_BATTERY dependency

From: Arnd Bergmann <[email protected]>

The dependency is required to avoid a link failure after support for battery hooks was added:

ld.lld: error: undefined symbol: battery_hook_unregister

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

referenced by fujitsu-laptop.c
drivers/platform/x86/fujitsu-laptop.o:(acpi_fujitsu_laptop_remove) in archive vmlinux.a

Fixes 611d56d76dee ("platform/x86/fujitsu-laptop: Add battery charge control support")
---
 drivers/platform/x86/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/Kconfig +1 -0
index 6dbd40e2aeda..d9851b79bfe5 100644
@@ -371,6 +371,7 @@ config FUJITSU_LAPTOP
 	depends on INPUT
 	depends on BACKLIGHT_CLASS_DEVICE
 	depends on ACPI_VIDEO || ACPI_VIDEO = n
+	depends on ACPI_BATTERY
 	select INPUT_SPARSEKMAP
 	select NEW_LEDS
 	select LEDS_CLASS
Signature · 1 line
2.39.2
maintainer
#1 lore raw
Quoted 20 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The dependency is required to avoid a link failure after support for battery hooks was added:

ld.lld: error: undefined symbol: battery_hook_unregister

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

referenced by fujitsu-laptop.c
drivers/platform/x86/fujitsu-laptop.o:(acpi_fujitsu_laptop_remove) in archive vmlinux.a

Fixes 611d56d76dee ("platform/x86/fujitsu-laptop: Add battery charge control support")
---
 drivers/platform/x86/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/Kconfig +0 -0
index 6dbd40e2aeda..d9851b79bfe5 100644

drivers/platform/x86/Kconfig config FUJITSU_LAPTOP · line 377

Quoted 7 lines
drivers/platform/x86/Kconfig +1 -0
@@ -371,6 +371,7 @@ config FUJITSU_LAPTOP
 	depends on INPUT
 	depends on BACKLIGHT_CLASS_DEVICE
 	depends on ACPI_VIDEO || ACPI_VIDEO = n
+	depends on ACPI_BATTERY
 	select INPUT_SPARSEKMAP
 	select NEW_LEDS
 	select LEDS_CLASS

Thanks. We already fixed this in the originating commit (and now the fixed version of the commit has also propaged to the for-next branch).

Signature · 1 line
 i.