mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Arnd Bergmann <arnd@kernel.org>
Cc: Hans de Goede <hansg@kernel.org>, Armin Wolf <W_Armin@gmx.de>,
	 Mingyou Chen <qby140326@gmail.com>, Lee Jones <lee@kernel.org>,
	 Pavel Machek <pavel@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
	 Antheas Kapenekakis <lkml@antheas.dev>,
	 Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	 Mark Pearson <mpearson-lenovo@squebb.ca>,
	 "Luke D. Jones" <luke@ljones.dev>,
	Gladyshev Ilya <foxido@foxido.dev>,
	 platform-driver-x86@vger.kernel.org,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] platform/x86: bitland-mifs-wmi: add CONFIG_LEDS_CLASS dependency
Date: Wed, 20 May 2026 13:25:05 +0300 (EEST)	[thread overview]
Message-ID: <e09ac3d9-2749-ab31-5df3-2fc75a7f2758@linux.intel.com> (raw)
In-Reply-To: <20260519202804.1339581-1-arnd@kernel.org>

On Tue, 19 May 2026, Arnd Bergmann wrote:

> From: Arnd Bergmann <arnd@arndb.de>
> 
> The newly added driver requires the LED classdev support
> and causes a link failure when that is disabled:
> 
> x86_64-linux-ld: vmlinux.o: in function `bitland_mifs_wmi_probe':
> bitland-mifs-wmi.c:(.text+0xede02a): undefined reference to `devm_led_classdev_register_ext'

Hpmf, I always try to check these for new drivers as they're so common 
mistakes but I don't know why I didn't notice this one.

Applied this fix to review-ilpo-fixes. Thanks!

> Fixes: dc1ec4fa86b2 ("platform/x86: bitland-mifs-wmi: Add new Bitland MIFS WMI driver")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ----
> There is currently a mix of 'depends on LEDS_CLASS'
> and 'select LEDS_CLASS' in the platform drivers. This
> is something that should be fixed at some point, as it
> risks circular dependencies.
>
> The majority use 'select', but I went for 'depends on'
> here since the symbol is user visible.

I've noticed this earlier but I didn't know which one is preferred.

Checking it again, it seems that anything under drivers/leds is using 
'depends on' so I suppose that would be the preferred alternative.

> ---
>  drivers/platform/x86/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
> index 0e9f4403a4f4..d7beda4239ab 100644
> --- a/drivers/platform/x86/Kconfig
> +++ b/drivers/platform/x86/Kconfig
> @@ -118,6 +118,7 @@ config BITLAND_MIFS_WMI
>  	depends on ACPI_WMI
>  	depends on HWMON
>  	depends on INPUT
> +	depends on LEDS_CLASS
>  	depends on POWER_SUPPLY
>  	select ACPI_PLATFORM_PROFILE
>  	select INPUT_SPARSEKMAP
> 

-- 
 i.


      reply	other threads:[~2026-05-20 10:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-19 20:28 Arnd Bergmann
2026-05-20 10:25 ` Ilpo Järvinen [this message]

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=e09ac3d9-2749-ab31-5df3-2fc75a7f2758@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=W_Armin@gmx.de \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=arnd@arndb.de \
    --cc=arnd@kernel.org \
    --cc=foxido@foxido.dev \
    --cc=hansg@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@antheas.dev \
    --cc=luke@ljones.dev \
    --cc=mpearson-lenovo@squebb.ca \
    --cc=pavel@kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=qby140326@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®