From: Pavel Machek <pavel@ucw.cz>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
linux-leds@vger.kernel.org, Dan Murphy <dmurphy@ti.com>,
Milo Kim <milo.kim@ti.com>
Subject: Re: [PATCH] leds: LP55XX_COMMON needs to depend on LEDS_CLASS
Date: Mon, 17 Aug 2020 22:28:29 +0200 [thread overview]
Message-ID: <20200817202829.GA14094@amd> (raw)
In-Reply-To: <0ad9338b-e2da-e269-db49-b448977bdc83@infradead.org>
[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]
Hi!
> From: Randy Dunlap <rdunlap@infradead.org>
>
> With these kernel configs:
> CONFIG_LEDS_CLASS=m
> # CONFIG_LEDS_CLASS_MULTICOLOR is not set
> CONFIG_LEDS_LP55XX_COMMON=y
> CONFIG_LEDS_LP5521=m
> CONFIG_LEDS_LP5562=m
>
> leds-lp55xx-common.c has a build error because it is builtin and
> calls an interface that is built as a loadable module (due to
> LEDS_CLASS=m). By making LEDS_LP55XX_COMMON depend on LEDS_CLASS,
> this config combination cannot happen, thus preventing the build error.
>
> ld: drivers/leds/leds-lp55xx-common.o: in function `lp55xx_register_leds':
> leds-lp55xx-common.c:(.text+0xc5f): undefined reference to `devm_led_classdev_register_ext'
>
> Fixes: 33b3a561f417 ("leds: support new LP8501 device - another LP55xx common")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Pavel Machek <pavel@ucw.cz>
> Cc: Dan Murphy <dmurphy@ti.com>
> Cc: Milo Kim <milo.kim@ti.com>
> Cc: linux-leds@vger.kernel.org
> ---
> The Fixes: tag might be incorrect... I also considered:
> 92a81562e695 ("leds: lp55xx: Add multicolor framework support to
> lp55xx")
Thanks, makes sense, I'll take this one. I believe the second fixes
tag is correct; not that it matters.
Thanks and best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
prev parent reply other threads:[~2020-08-17 20:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-17 19:11 [PATCH] leds: LP55XX_COMMON needs to depend on LEDS_CLASS Randy Dunlap
2020-08-17 20:28 ` Pavel Machek [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=20200817202829.GA14094@amd \
--to=pavel@ucw.cz \
--cc=dmurphy@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=milo.kim@ti.com \
--cc=rdunlap@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).