Re: [PATCH] platform/x86: lenovo: gamezone needs "other mode"
From: Ilpo Järvinen
Date: Fri Jul 11 2025 - 10:57:27 EST
On Wed, 9 Jul 2025, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> Registering the "other mode" notifier fails if that is disabled:
>
> x86_64-linux-ld: drivers/platform/x86/lenovo/wmi-gamezone.o: in function `lwmi_gz_probe':
> wmi-gamezone.c:(.text+0x336): undefined reference to `devm_lwmi_om_register_notifier'
>
> This could be fixed by adding a stub helper, but a Kconfig 'select'
> seems simpler here.
>
> Fixes: 22024ac5366f ("platform/x86: Add Lenovo Gamezone WMI Driver")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> ---
> drivers/platform/x86/lenovo/Kconfig | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/platform/x86/lenovo/Kconfig b/drivers/platform/x86/lenovo/Kconfig
> index b76157b35296..e9e1c3268373 100644
> --- a/drivers/platform/x86/lenovo/Kconfig
> +++ b/drivers/platform/x86/lenovo/Kconfig
> @@ -250,8 +250,7 @@ config LENOVO_WMI_GAMEZONE
> depends on ACPI_WMI
> depends on DMI
> select ACPI_PLATFORM_PROFILE
> - select LENOVO_WMI_EVENTS
> - select LENOVO_WMI_HELPERS
> + select LENOVO_WMI_TUNING
Why did you remove the other two?
Do select propagate properly these days across another select? I was under
impression they don't which is one of the reasons use of select is
discouraged.
--
i.