Re: [PATCH] drm: nouveau: fix build when LEDS_CLASS=m

From: Jani Nikula
Date: Mon Jan 09 2017 - 05:59:12 EST


On Thu, 05 Jan 2017, Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
> That particular circular/recursive dependency is ugly. I spent about
> one hour trying/testing various fixes and don't have one.

I didn't really look at this one all that much, but when I face problems
with kconfig, it's almost invariably because of overuse of
select. Documentation/kbuild/kconfig-language.txt says, "In general use
select only for non-visible symbols (no prompts anywhere) and for
symbols with no dependencies." People violate this all the time because
it's convenient. If they depended, they'd have to enable all deps to
even see their config.

I wish kconfig would warn about incorrect use of select... though I
guess that would produce a wall of warnings. Additionally, it really
should be easier to find and enable unmet dependencies in
menuconfig. Someone(tm) has a lot of work to do...

BR,
Jani.



--
Jani Nikula, Intel Open Source Technology Center