[PATCH v3 00/13] drm/display: Convert helpers Kconfig symbols to depends on

Jani Nikula jani.nikula at linux.intel.com
Tue Apr 9 10:04:42 UTC 2024


On Tue, 09 Apr 2024, Geert Uytterhoeven <geert at linux-m68k.org> wrote:
> The user should not need to know which helpers are needed for the driver
> he is interested in.  When a symbol selects another symbol, it should
> just make sure the dependencies of the target symbol are met.

It's really not "just make sure". This leads to perpetual illegal
configurations, and duct tape fixes. Select should not be used for
visible symbols or symbols with dependencies [1].

What we'd need for usability is not more abuse of select, but rather 1)
warnings for selecting symbols with dependencies, and 2) a way to enable
a kconfig option with all its dependencies, recursively. This is what we
lack.


BR,
Jani.


[1] Documentation/kbuild/kconfig-language.rst "reverse dependencies"


-- 
Jani Nikula, Intel


More information about the dri-devel mailing list