From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Kurt Borja <kuurtb@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>,
platform-driver-x86@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>,
kernel test robot <lkp@intel.com>
Subject: Re: [PATCH] platform/x86: dell: Fix ALIENWARE_WMI dependencies
Date: Mon, 10 Mar 2025 16:29:27 +0200 (EET) [thread overview]
Message-ID: <8d219429-b13f-2610-960e-58851d53696f@linux.intel.com> (raw)
In-Reply-To: <20250309-dell-kconfig-fix-v1-1-38a2308d0ac6@gmail.com>
On Sun, 9 Mar 2025, Kurt Borja wrote:
> If ACPI_PLATFORM_PROFILE is selected by ALIENWARE_WMI_WMAX, the former
> is forced to be at least =m, because the latter is a bool.
>
> This allows the following config:
>
> CONFIG_ALIENWARE_WMI=y
> CONFIG_ACPI_PLATFORM_PROFILE=m
Hi,
selecting from =y should not result in =m for the other symbol. This is
a bug in Kconfig infrastructure.
I ran across this a few years back and even had a test case to prove the
select bug but back then the original problem eventually was solved in a
different way which no longer hit the problem. I never could figure out
how to fix the kconfig logic though without breaking something and it
ended up into low priority bin and never got solved.
Sadly, it seems I've lost the test case patch that exhibits the bug
somewhere... I'll try to look for it from my archived files.
> which causes a linking error, because ALIENWARE_WMI_WMAX is only used to
> conditionally link alienware-wmi-wmax.c to the alienware-wmi kernel
> object, which might not be a module.
>
> Move the ACPI_PLATFORM_PROFILE reverse dependency to ALIENWARE_WMI to
> fix this issue.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202503051819.bQ9P70Og-lkp@intel.com/
> Fixes: b1b8fcf6e677 ("platform/x86: Update alienware-wmi config entries")
> Signed-off-by: Kurt Borja <kuurtb@gmail.com>
> ---
> drivers/platform/x86/dell/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/dell/Kconfig b/drivers/platform/x86/dell/Kconfig
> index f8a0dffcaab7c3b423472c5b9093011334a698c8..87c2ceb12d48d610c85fa739abbc4f0d88e33ec8 100644
> --- a/drivers/platform/x86/dell/Kconfig
> +++ b/drivers/platform/x86/dell/Kconfig
> @@ -22,6 +22,7 @@ config ALIENWARE_WMI
> depends on DMI
> depends on LEDS_CLASS
> depends on NEW_LEDS
> + select ACPI_PLATFORM_PROFILE
> help
> This is a driver for controlling Alienware WMI driven features.
>
> @@ -43,7 +44,6 @@ config ALIENWARE_WMI_WMAX
> bool "Alienware WMAX WMI device driver"
> default y
> depends on ALIENWARE_WMI
> - select ACPI_PLATFORM_PROFILE
> help
> Alienware WMI driver with AlienFX LED, HDMI, amplifier, deep sleep and
> AWCC thermal control capabilities.
>
> ---
> base-commit: e57eabe2fb044950e6ffdfe01803895043dec0b7
> change-id: 20250309-dell-kconfig-fix-4d3daedaedbf
>
> Best regards,
>
--
i.
next prev parent reply other threads:[~2025-03-10 14:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-09 16:33 [PATCH] platform/x86: dell: Fix ALIENWARE_WMI dependencies Kurt Borja
2025-03-10 14:29 ` Ilpo Järvinen [this message]
2025-03-10 14:57 ` Kurt Borja
2025-03-10 16:46 ` Ilpo Järvinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8d219429-b13f-2610-960e-58851d53696f@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=hdegoede@redhat.com \
--cc=kuurtb@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.