From: "Kurt Borja" <kuurtb@gmail.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.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 09:57:57 -0500 [thread overview]
Message-ID: <D8COAMZV0RBJ.1C66Q3AVETTD8@gmail.com> (raw)
In-Reply-To: <8d219429-b13f-2610-960e-58851d53696f@linux.intel.com>
Hi Ilpo,
On Mon Mar 10, 2025 at 9:29 AM -05, Ilpo Järvinen wrote:
> 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.
That's funny.
I thought this was a Kconfig quirk, that resulted from the following
hierarchy:
Type 0 1 2
=============== ======= ======= =======
Bool n y
Tristate n m y
So a <bool> selecting the <tristate> would force it to be at least =m.
The same thing happens with depend, where a dependecy would be fulfilled
for a <bool> if a <tristate> was at least =m. That's why in the kernel
robot report the linking error was also due to the HWMON dependency.
Anyway, this patch could serve as a workaround if you feel it's
necessary. I'm going to put the HWMON dependecy in the ALIENWARE_WMI
symbol for my other series.
--
~ Kurt
next prev parent reply other threads:[~2025-03-10 14:58 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
2025-03-10 14:57 ` Kurt Borja [this message]
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=D8COAMZV0RBJ.1C66Q3AVETTD8@gmail.com \
--to=kuurtb@gmail.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.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.